activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SuoNayi <suonayi2...@163.com>
Subject Re:Re: Failover event
Date Tue, 12 Feb 2013 14:25:46 GMT
The command BrokerInfo is telling you what broker your client has connected,
When the broker is shut down,the transportInterupted method of TransportListener 
is called and it indicates that your client has disconnected with the broker which 
the previous BrokerInfo represents.



At 2013-02-12 17:50:15,vts2011 <vtsvtsvtsvtsvts@gmail.com> wrote:
>I've been trying implementing TransportListener interface and passing a
>reference to ActiveMQConnectionFactory. I could see that when I launch my
>application the transportResumed method is called and then the onCommand
>method several times, with a WireFormatInfo object, a BrokerInfo object and
>a ConnectionControl object as parameters in the different invocations. When
>I turn down the master broker, I can see that the transportInterupted is
>called but as this method does not receive any parameter, how can I know
>what the broker that go down was? Later when I turn up the master broker
>again, I can see the calls to the transportResumed and onCommand methods but
>I have no hint of with broker is the one active, how can I know what the
>active broker is?
>
>Thank you
>
>
>
>--
>View this message in context: http://activemq.2283324.n4.nabble.com/Failover-event-tp4663180p4663230.html
>Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message