| <div class="wiki-content maincontent"><h2>How can I monitor the connection with the broker</h2> |
| |
| <p>You can monitor the status of the connection with the broker via the <a shape="rect" href="http://activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQConnection.html#addTransportListener%28org.apache.activemq.transport.TransportListener">addTransportListener() method on the ActiveMQConnection</a>. </p> |
| |
| <p>This method takes a <a shape="rect" href="http://activemq.apache.org/maven/apidocs/org/apache/activemq/transport/TransportListener.html">TransportListener</a> which is notified as the connection is established & dropped. It also allows you to work with the <link><page ri:content-title="Failover Transport Reference"></page><link-body>Failover Transport</link-body></link> yet still know the status of the connection.</p> |
| |
| |
| <h3>See Also</h3> |
| |
| <ul><li><link><page ri:content-title="How can I monitor ActiveMQ"></page></link></li></ul> |
| </div> |
| |