Hi Rolin, Just an idea, but what about listing the first broker twice in the failover list?
failover:(tcp://broker1:61616,*tcp://broker1:61616*,tcp://broker2:61616)?... On Thu, Nov 22, 2012 at 11:47 AM, rolin <ro...@wellington.com> wrote: > Hi, > > I am running activemq 5.4.2 with JDK1.6.025 in Linux. There are two > brokers configured via network of brokers. Java client connects to brokers > using the following failover url: > > failover:(tcp://broker1:61616,tcp://broker2:61616)?randomize=false&initialReconnectDelay=15000&maxReconnectAttempts=10 > > Java client sometimes falsely detects connection lost to broker1 and > successfully reconnects to broker2. Is there a way to configure failover > transport to retry broker1 first before trying broker2? > > I understand that "Priority Backup" is introduced as part of 5.6.0 and that > might serve the purpose. But I am using 5.4.2 and do not plan to upgrade > in > near future. > > The cause of false detection of connection lost is under investigation. It > could be caused by long GC (>30 seconds). But it is a separate issue. > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Can-Failover-transport-retry-current-connection-first-tp4659680.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >