How can I monitor the connection with the broker

 FAQ > Using Apache ActiveMQ Classic > 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

Apache, ActiveMQ, Apache ActiveMQ, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2024, The Apache Software Foundation. Licensed under Apache License 2.0.