Cannot browse broker queues via command line activemq-admin tool

Solution Verified - Updated -

Environment

  • Fuse Message Broker 5.x
  • Fuse MQ Enterprise 7.x

Issue

When running the following command:

./activemq-admin browse --amqurl tcp://localhost:61616 --user admin --password admin -Vbody deadletter

the returned data is:
JMS_BODY_FIELD:JMSBytes:1 =

but I would of expected to see the message body.
Is this a bug?

Root Cause

This problem has come up in the past when the message to browse was not of type javax.jms.TextMessage. Only text messages may get displayed correctly by the browse command.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments