GNU/Linux JBoss Fuse Shell ActiveMQ Commands
Display basic queue information…
activemq:query -QQueue=* --view Name,EnqueueCount,DequeueCount,QueueSize
Display queue messages…
activemq:browse --amqurl tcp://localhost:61616 --user [username] --password [password] queue:[queuename]
Purge a specific message from the command line…
activemq:purge --msgsel "JMSMessageID='ID:XXXXXXXX-000000-0000000000000-0:0:00:0:0'" [queuename]
Purge all messages from a specific queue…
activemq:purge [queuename]