activemq-artemis/examples/features/federation/federated-address-divert
brusdev a8c278a80e ARTEMIS-2790 Fix no examples documentation in the bin archive
Move the markdown generator for the examples to artemis-distribution.
2020-06-04 10:15:10 -04:00
..
src/main ARTEMIS-2613: Add support for DivertBindings for federated addresses 2020-02-17 12:15:18 -05:00
pom.xml ARTEMIS-2790 Fix no examples documentation in the bin archive 2020-06-04 10:15:10 -04:00
readme.md ARTEMIS-2613: Add support for DivertBindings for federated addresses 2020-02-17 12:15:18 -05:00

readme.md

Federated Address Divert Example

To run the example, simply type mvn verify from this directory, or mvn -PnoServer verify if you want to start and create the broker manually.

This example demonstrates a core multicast address deployed on two different brokers. The two brokers are configured to form a federated address mesh.

In the example we name the brokers eu-west and eu-east.

The following is then carried out:

  1. create a divert binding with a source address of exampleTopic and target address of divertExampleTopic on eu-west

  2. create a consumer on the topic divertExampleTopic on eu-west and create a producer on the topic exampleTopic on eu-east.

  3. send some messages via the producer on eu-east, and we verify the eu-west consumer receives the messages because of the divert binding demand

For more information on ActiveMQ Artemis Federation please see the federation section of the user manual.