Failover protocol with brokers behind a load balancer in JBoss A-MQ

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content