DemandForwardingBridgeSupport is not reconnecting properly

Solution Verified - Updated -

Issue

We are using 5.7.0.fuse-71-047 with network connectors between master/slave pairs in non-duplex mode. Pair 1 opens a bridge to Pair 2, and vice versa. In a case that one of pairs is not available, the network connector seems to give up and shutdown after about a minute and a half.

Pair one: configuration activemq.xml:
 <networkConnectors>
 <networkConnector uri="masterslave:(tcp://amq2:61616,tcp://amq4:61616)" />
</networkConnectors>

Pair two: configuration activemq.xml:
 <networkConnectors>
 <networkConnector uri="masterslave:(tcp://amq1:61616,tcp://amq3:61616)" />
</networkConnectors>

The logs show that the masterslave uri resolves to:

failover:(tcp://amq1:61616,tcp://amq3:61616)?randomize=false&maxReconnectAttempts=0

Why does it say 0?

Environment

  • Fuse Message Broker 5.7.X, 5.8.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