layout: default_md title: How can I monitor the connection with the broker title-class: page-title-activemq5 type: activemq5

 FAQ > Using Apache ActiveMQ > How can I monitor the connection with the broker

How can I monitor the connection with the broker

You can monitor the status of the connection with the broker via the addTransportListener() method on the ActiveMQConnection.

This method takes a TransportListener which is notified as the connection is established & dropped. It also allows you to work with the Failover Transport yet still know the status of the connection.

See Also