-
1. Re: getting queue depth from client
raja05 Dec 7, 2003 11:19 PM (in response to rviloria)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.
-Raj -
2. Re: getting queue depth from client
rviloria Dec 9, 2003 4:05 PM (in response to rviloria)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! -
3. Re: getting queue depth from client
raja05 Dec 9, 2003 4:35 PM (in response to rviloria)There are two ways to do it.
Check out the thread
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= -
4. Re: getting queue depth from client
rviloria Dec 11, 2003 6:45 AM (in response to rviloria)Hi Raj,
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.
Regards,
Ron -
5. Re: getting queue depth from client
raja05 Dec 11, 2003 7:07 AM (in response to rviloria)http://jboss.org/index.html?module=bb&op=viewtopic&t=43093
Try that or do a search for Programmatic EJB Cache Flush in the EJb forums.
-Raj -
6. Re: getting queue depth from client
rviloria Dec 19, 2003 4:41 AM (in response to rviloria)Hi Raj,
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
service: Queue
name: inbound
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.
Ron -
7. Re: getting queue depth from client
rviloria Dec 22, 2003 4:09 PM (in response to rviloria)Thanks, I got this working and majority was with Raj's snippet.