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.