activemq-artemis/examples/features/federation/federated-address-divert
Justin Bertram 5fcb763234 [maven-release-plugin] prepare release 2.19.0 2021-10-11 13:35:06 -05:00
..
src/main ARTEMIS-2613: Add support for DivertBindings for federated addresses 2020-02-17 12:15:18 -05:00
pom.xml [maven-release-plugin] prepare release 2.19.0 2021-10-11 13:35:06 -05: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.