Wednesday, March 30, 2011

Get count of messages in a jboss message queue from command prompt

Hi All,

You can also retrieve message count in a particular message queue of jboss, from command prompt, without accessing jmx console.

With command prompt you can automate and send alerts in case message count is above your application threshold

The command to do this is


./twiddle.sh -s localhost:1099 get jboss.messaging.destination:service=Queue,name=ResponseQueue MessageCount


Run this command from jboss bin directory and you can change queue name (in above example it is ResponseQueue) to your application specific queue name

No comments:

Post a Comment