activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Notification of connection down between broker and client?
Date Wed, 01 Oct 2014 15:28:24 GMT
You could  drop into ActiveMQ specific code - cast you Connection to an 
ActiveMQConnection and add a TransportListener to get notifications of 
the underlying transport events
see 
http://activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQConnection.html 
and 
http://activemq.apache.org/maven/apidocs/org/apache/activemq/transport/TransportListener.html

> bansalp <mailto:bpradeep20@gmail.com>
> 1 October 2014 12:45
> AMQGods Please help,
>
> I have a system which is using failover uri mechanism with master-slave
> architecture (when primary runs, failover waits on lock and when failover
> run primary wait on lock on kahadb).
>
> I need my clients to know when there is a problem with connection to 
> broker.
>
> Whenever primary goes down failover takes over and clients get 
> connected to
> failover broker. I want my clients to know that primary is down and
> similarly when failover goes down my client should know about it.
>
> What is the recommended way to do it?
>
> Please help, I really need answer to this quickly.
>
> Thanks
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Notification-of-connection-down-between-broker-and-client-tp4686035.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message