ActiveMQ supports advisory messages or advisories which are added to a standard topic when something happens in ActiveMQ, for example, when a message is consumed or if a message is discarded.
Advisories can be read like any other topic. The following advisories can be useful to monitor:
- sendAdvisoryIfNoConsumers (for the node events, this advisory is not sent because events are persistent)
- advisoryForSlowConsumers
- advisdoryForFastProducers
- advisoryForDiscardingMessages
- advisoryWhenFull
The advisories can be configured in the activemq.xml file as follows:
<policyEntry topic="alfresco.repo.event2" advisoryForDelivery="true" advisoryForConsumed="true" advisoryForSlowConsumers="true" sendAdvisoryIfNoConsumers="true" advisoryForFastProducers="true">
For more information about advisory messages, see the Handling Advisory Messages tutorial in the ActiveMQ documentation, available at https://activemq.apache.org.