get the object name for queue u are interested in and retrieve the "QueueDepth" attribute. Check out http://localhost:8080/jmx-console
jboss.mq.destination domain and the name of the queue u are interested in.
You can use the RMIAdaptor to obtain the MBean Server from ur client.
Thank you Raj,
I am not familiar with the use of the RMIAdaptor from a client. Can you point me to some simple documentation/example to help me verify that I am on the right track to get the queue depth? In the meantime I will continue to pursue this path.
I also wanted to try another path by perhaps creatively using a message selector on a queuebrowser to get the count of the messages, although I havent put much thought into that technique yet. Thank you in advance!
I tried your link but I get a blank screen. Is that a complete link? I would have PM'd you but it might be helpful if the community sees the corrected link if it is indeed incomplete. Thank you for your quick response and follow up, I am very interested in following through with it.
Sorry, I am only able to work on this stuff mostly on the weekends so I apologize for not progressing on this item. I did lookup your link where it seems there are two ways to deal with it. One seems to be using the RMIAdaptor from the client which I couldnt get to work, and the second is accessing a URL to flush (but this may be different as I am trying to receive a value of the QueueDepth and not just invoke an action). I am trying to get this value from a remote client and want to access the Mbean attribute of QueueDepth.
MBean Name: Domain Name: jboss.mq.destination
MBean Java Class: org.jboss.mq.server.jmx.Queue
I will continue to get the RMIAdaptor working from my remote client in the meantime, thank you in advance.
Thanks, I got this working and majority was with Raj's snippet.