JMS Examples: Load Balanced Clustered Queue
11.1.24. Load Balanced Clustered Queue The clustered-queue example demonstrates a JMS queue deployed on two different nodes. The two nodes are configured to form a cluster. We then create a consumer 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 consumers receive the sent messages in a round-robin fashion. In other words, HornetQ load balances the sent messages across all consumers on the cluster