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

© 2004-2011 The Apache Software Foundation.
Apache ActiveMQ, ActiveMQ, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram