Thanks Tim, This looks like exactly like what I need.
-Vladimir On 12/5/13, 5:02 PM, "Timothy Bish" <tabish...@gmail.com> wrote: >On 12/05/2013 04:55 PM, Vladimir Sutskever wrote: >> Hi >> >> I am using the a failover URI with ActiveMQ's Connection Factory for a >>Java message consumer. >> >> failover:(tcp://primary:61616,tcp://secondary:61616)?randomize=false >> >> >> The connection successfully fails over to the secondary host once >>primary host is down. >> But it won't get re-established back with primary host once the primary >>host goes back up. >> I need to kill the secondary site to trigger the swap back to primary. >> >> Is there a configuration that will ping the primary site and switch to >>it once its up? >> >> >> >> >> >> Thanks >> >> Vladimir >> >Look at the priority backup feature: >http://activemq.apache.org/failover-transport-reference.html > >-- >Tim Bish >Sr Software Engineer | RedHat Inc. >tim.b...@redhat.com | www.fusesource.com | www.redhat.com >skype: tabish121 | twitter: @tabish121 >blog: http://timbish.blogspot.com/ >