I am using two brokers and create a consumer connection like this
ccf = new ActiveMQConnectionFactory(new URI("failover://(tcp://0.0.0.0:61617,tcp://0.0.0.0:61618)"));
ccf.setTransportListener(this);
I see in the logs that if one broker goes down the connection reconnects to other failover But how & where do i catch this event