Apache ActiveMQ setup - galan/plunger GitHub Wiki

You can use the commands cat and put without any modifications. To enable ls and count you need to enable JMX in ActiveMQ and add it to your target.

Enable JMX, this can be done by adding the following line to $AMQ_HOME/bin/activemq:

ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

You can then perform ls and count by adding the jmxPort parameter to the target, eg:

# 1099 is the default port and can be omitted
pls amq://localhost:61616
pls amq://localhost:61616?jmxPort=9876