activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: [ActiveMQ-CPP] "backup=true" does not work with failover transport
Date Thu, 27 Jul 2017 15:26:24 GMT
On 07/27/2017 11:21 AM, Tamas1 wrote:
> I am working with an application that uses the ActiveMQ-CPP 3.9.1 Release.
>
> Two ActiveMQ brokers are used with the following connection URL:
> failover:(tcp://amq01:61616,tcp://amq02:61616)?backup=true
>
> I intented to test the application behaviour if one of the brokers is shut
> down.
> - If "backup=false" is used in the connection URL, the failover to the other
> broker works (producters/consumers reconnect automatically).
> - Using "backup=true", the TCP connection of the application to the second
> broker is also dropped when the first broker is shut down. The application
> is attempting to reconnect to the first broker in the list which is shut
> down but there is no reconnection attempt to the second broker (which is up)
> made.
>
> I configured maxReconnectAttempts=1, then the application did not even try
> to reconnect to any broker. Using maxReconnectAttempts=3, the application
> attempted to reconnect to the first broker 4 times but never to the second
> broker, which was up.
>
> Any ideas how I could get "backup=true" to work? May it be a bug in the
> library?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-CPP-backup-true-does-not-work-with-failover-transport-tp4728967.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
I'd recommend using the latest release which has some backup handling 
fixes (3.9.4)

-- 
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message