Failover protocol with brokers behind a load balancer in JBoss A-MQ
Issue
- We have two message brokers - broker01, broker02 and a load balancer. We test using
extras/mq-client.jar. - The client connects to the LB using failover using the uri
failover://tcp://<host>:61616. - Assuming the LB tells the client to connect to broker01.
- When we shutdown broker01, the client fails over correctly, but it connects directly to broker02. instead of directing traffic back through the load balancer. Is there any way to enable failover reconnections to occur through the load balancer?
Environment
- Red Hat JBoss A-MQ
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
