LibraryLink ToToggle FramesPrintFeedback

Browsing Messages on a Destination

You can browse the messges on a selected destination using the browse task and a broker URL, as follows:

activemq-admin browse --amqurl URL DestinationName

For example, to print the JMS message header, custom message header, and message body of all the messages in the queue 'TEST.FOO' on the localhost broker, type:

activemq-admin browse --amqurl tcp://localhost:61616 TEST.FOO

You can specify a particular group of message attributes to view using the -V flag, as follows:

For example, to show on the message body of messages in the queue TEST.FOO on localhost, type:

activemq-admin browse --amqurl tcp://localhost:61616 -Vbody TEST.FOO

You can filter specific messages using the --msgsel option combined with one of the following JMS message headers.


For example, to view a message with an ID ending in "10", type:

activemq-admin browse --amqurl tcp://localhost:61616 --msgsel JMSMessaageID='*:10' TEST.FOO

To view messages with a priority of 3, type:

activemq-admin browse --amqurl tcp://localhost:61616 --msgsel JMSPriority=3 TEST.FOO