Jonas Audenaert
Jonas Audenaert

Reputation: 162

Consume activemq to a log but keep the message in the queue

I have an activeMQ app. I want to read the body of incoming messages, but keep the message into the queue. How do I do that? Is there any trick?

Upvotes: 0

Views: 260

Answers (1)

hemant1900
hemant1900

Reputation: 1226

You can use message browsing feature of ActiveMQ by using ActiveMQQueueBrowser

http://activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQQueueBrowser.html

Upvotes: 1

Related Questions