Browsing Messages with ActiveMQ

ActiveMQ lets you browse messages easily from the Web console available at the address: http://localhost:8161 . Unfortunately an issue prevents the message browsing when using JDK 1.8

The related issue is https://issues.apache.org/jira/browse/AMQ-5356 and from the log files it's visible with this error:

PWC6199: Generated servlet error:
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files

 However once set JAVA_HOME to JDK.1.7 it works:

JAVA_HOME=/home/user1/jdk1.7.0_79
export JAVA_HOME

activemq browse message

As an alternative you can use the admin script to browse the Queue:

./activemq browse --amqurl tcp://localhost:61616 exampleQueue

Advertisement

Cookie Alert