Activity monitoring in ActiveMQ (Advanced)
In this recipe we will look at how you can monitor activity in ActiveMQ Broker using the JMS API and the broker's built-in Advisory Message feature. Advisory messages from the broker allow your application to monitor events on the broker such as:
- Connections, consumers, and producers starting and stopping
- Temporary destinations being created and destroyed
- Messages expiring on topics and queues
Getting ready
In this recipe we will use two examples. The first example is named advisory-generator, which will cause the broker to produce some advisory messages. The second one is named advisory-consumer, which demonstrates how we can implement those broker advisories.
How to do it...
To run the sample for this recipe ...
Get Instant Apache ActiveMQ Messaging Application Development How-to now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.