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.