This content has been marked as final.
Show 1 reply
-
1. Re: Monitoring the number of messages in a queue from the co
pgbossi May 5, 2008 5:05 PM (in response to pgbossi)Replying to myself for the benefit of others: I can't make it to work over the net, at least between windows and linux machines, but the following works perfectly fine if run directly on the server.
[root@fakehost bin]# ./twiddle.sh -u admin -p XXXXX get "jboss.mq.destination:service=Queue,name=QUEUE-XXX" QueueDepth QueueDepth=0 [root@fakehost bin]# ./twiddle.sh -u admin -p XXXXX get "jboss.mq.destination:service=Queue,name=QUEUE-YYY" QueueDepth QueueDepth=0 [root@fakehost bin]# ./twiddle.sh -u admin -p XXXXX get "jboss.mq.destination:service=Queue,name=QUEUE-YYY" SubscribersCount SubscribersCount=10 [root@fakehost bin]# ./twiddle.sh -u admin -p XXXXX get "jboss.mq.destination:service=Queue,name=QUEUE-XXX" SubscribersCount SubscribersCount=10
The attribute SubscribersCount tells you how many subscribers are listening on the queue, while QueueDepth tells you how many messages are currently in the queue.
HTH
Giuliano