[英]Consume activemq to a log but keep the message in the queue
I have an activeMQ app. 我有一个activeMQ应用程序。 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?
有没有把戏?
You can use message browsing feature of ActiveMQ by using ActiveMQQueueBrowser
您可以通过使用
ActiveMQQueueBrowser
使用ActiveMQQueueBrowser
消息浏览功能
http://activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQQueueBrowser.html http://activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQQueueBrowser.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.