activemq-artemis/examples/protocols/mqtt/clustered-queue-mqtt
Clebert Suconic c99fcd501b [maven-release-plugin] prepare for next development iteration 2020-05-15 16:42:54 -04:00
..
src/main NO-JIRA fix-up examples 2018-03-01 14:58:56 -06:00
pom.xml [maven-release-plugin] prepare for next development iteration 2020-05-15 16:42:54 -04:00
readme.md ARTEMIS-1562 Refactor example documentation 2017-12-15 14:54:16 +00:00

readme.md

MQTT Clustered Subscription 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 queue deployed on two different nodes. The two nodes are configured to form a cluster.

We then create an MQTT subscriber on the queue on each node, and we create a producer on only one of the nodes.

We then send some messages via the producer, and we verify that both subscribers receive the sent messages.

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