How to browse ActiveMQ JMS messages using java code ?

Solution Unverified - Updated -

Issue

  • How to get the properties of a queue without creating a consumer, i.e received time stamp of each message on the queue.
  • Unfortunately with the JMS API, the browse command creates the QueueBrowser by establishing a connection & session to the broker and then calling createBrowser() on the session .. so we get a consumer. Any ideas on how we might be able to extract this information in another way?

Environment

  • Red Hat JBoss A-MQ
    • 6.0
    • 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.