Which facilities of jboss7 I can to use in order to count messages in JMS queue? Maybe throug MBeans? Or such task doesn't have a solution?
(I have a standart HornetQ-queue)
I tried org.jboss.messaging:module=JMS,type=Queue,name="MyQueue" (as ObjectName of JMSQueueControlMBean), but without success..
If you want to see the number of messages in a queue you can use the web console, CLI, HornetQ management API (which includes JMX), HTTP API, etc.
Retrieving data ...