activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Failover event
Date Mon, 11 Feb 2013 19:02:19 GMT
On 02/11/2013 11:31 AM, vts2011 wrote:
> Hello,
>
> I' using ActiveMQ with several brokers and failover schema. It looks like
>
>
> failover:(tcp://local:61616,tcp://remote:61616)?randomize=false&priorityBackup=true
>
> I would like to know how I can capture the event when a broker is selected
> (because the local is down or the local is up again), ┬┐Is there a listener
> that fires any related event or something like that?
>
> Thanks in advance
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Failover-event-tp4663180.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

ActiveMQConnection allows you to add TransportListener instances as does 
the ActiveMQConnectionFactory, this interface has method for transport 
interruption and resume which correspond to the connection being broken 
/ restored.

-- 
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