activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Sutskever <vsutske...@3cinteractive.com>
Subject Re: Active MQ - fail-over uri configuration
Date Thu, 05 Dec 2013 22:07:04 GMT
Thanks Tim,

This looks like exactly like what I need.

-Vladimir

On 12/5/13, 5:02 PM, "Timothy Bish" <tabish121@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.bish@redhat.com | www.fusesource.com | www.redhat.com
>skype: tabish121 | twitter: @tabish121
>blog: http://timbish.blogspot.com/
>


Mime
View raw message