activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From artnaseef <>
Subject Re: setting randomize=false doesn't work in failover transport
Date Tue, 04 Feb 2014 14:48:15 GMT
Two ideas come to mind. One, clients are failing to connect. Two, the connection drops at some

Do you have logging to see failover activity on the client?  That would show either case.
Using activemq's transport listener on the connection would also be good here. Note there
is a race condition on setting it unless it is set on the ActiveMQConnectionFactory before
creating the connection. The race condition means events could be missed at startup. 

Sent from my iPhone

> On Feb 4, 2014, at 3:54 AM, "1gnition [via ActiveMQ]" <>
> Hey,
> We have a network of brokers with the following configuration in each broker:
>   <broker xmlns="" brokerName="broker" dataDirectory="${}">
>     <networkConnectors>
>       <networkConnector name="default" uri="multicast://" decreaseNetworkConsumerPriority="true"/>
>     </networkConnectors>
>     <transportConnectors>
>       <transportConnector name="openwire" uri="tcp://" discoveryUri="multicast://"/>
>         <publishedAddressPolicy>
>           <publishedAddressPolicy publishedHostStrategy="IPADDRESS"/>
>         <publishedAddressPolicy>
>       </transportConnector>
>     </transportConnectors>
>   </broker>
> (syntax highlighted version here)
> Now, we want clients to use failover transport but preferably connect to a local broker,
so we use this connection URI in the clients:
> failover:(tcp://localhost:61616,discovery:(multicast://
> The problem is that clients still connect to random broker in the network instead to
their local broker. We also tried adding
> priorityURIs=tcp://localhost:61616
> but it didn't help.
> Do you have any suggestion what is wrong?
> Thanks. 
> If you reply to this email, your message will be added to the discussion below:
> To start a new topic under ActiveMQ - User, email

> To unsubscribe from ActiveMQ - User, click here.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message