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