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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content