I would like to know if there is any way to read a jms and actibemq messages without consuming it ?? I know messages can be consumed from the queue , yet still I want ask this question .!!
相关问题
- How do I delay JMS Message sending?
- Is JavaEE really portable?
- How to get Spring to wire my JmsComponent
- ActiveMQ: Get list of connections through JMX?
- JMS Job queue with Grails
相关文章
- Spring JMS : Set ErrorHandler for @JmsListener ann
- When sending XML to JMS should I use TextMessage o
- ClassCastException: javax.naming.Reference cannot
- Connecting Unity3d Android application to ActiveMQ
- JMS ExceptionListener
- ActiveMQ - is it possible to acknowledge single me
- Get queues depth from java code
- schedule a message driven bean to access a queue d
Rather than using Message-consumers you need to use the
QueueBrowser
class for doing this:Another option is to "consume" the messages but just in a transaction, then when you're done, roll it back, but a browser might be better since that's "what it's for" as it were.
If you're just looking for a particular message, and manual will do, you can see (I think all, at least some of) the messages and their contents for an activemq by clicking on the "RSS feed" button in the UI. which basically dumps them all to the screen. The "atom feed" option seems to load faster than the "RSS" one FWIW.
You can browse Messages on a Queue via the JMS QueueBrowser, or in ActiveMQ you can browse the contents over JMX or with the commands line tools:
ActiveMQ console tools
JMS QueueBrowser API
ActiveMQ JMX