0

I want to be able to know the status of all messages that I sent. Is that possible in ActiveMQ? If so, how can I get a sent message by its ID and check whether it was received or not?

Ouissal
  • 1,519
  • 2
  • 18
  • 36

1 Answers1

0

Yes, you can subscribe to the Advisory Messages and configure the broker to emit and advisory when a message is consumed: http://activemq.apache.org/advisory-message.html

See the section about configuring the destination policy for advisoryForConsumed="true"

<destinationPolicy> <policyMap> <policyEntries> <policyEntry topic=">" advisoryForConsumed="true"/> <policyEntry queue=">" advisoryForConsumed="true"/> </policyEntries> </policyMap> </destinationPolicy>

Matt Pavlovich
  • 4,087
  • 1
  • 9
  • 17