activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WhiteSock <whitesock1...@hotmail.com>
Subject Re: How to catch the event when the "FAILOVER" connection goes down and swithes to another broker
Date Tue, 25 Nov 2008 13:57:18 GMT

Hi, 

   You can use the following codes:

ActiveMQConnection con = (ActiveMQConnection)connection;
con.addTransportListener(new TransportListener() {

	@Override
	public void onCommand(Object command) {
	}

	@Override
	public void onException(IOException error) {
	}

	@Override
	public void transportInterupted() {
	}

	@Override
	public void transportResumed() {
	}
});

    cheers
-- 
View this message in context: http://www.nabble.com/How-to-catch-the-event-when-the-%22FAILOVER%22-connection-goes-down-and-swithes-to-another-broker-tp20669850p20681672.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message