I don't have a ready-made answer, but here is how I would approach the problem.

First, run JBoss and use the jmx-console (http://localhost:8080/jmx-console) to 
find the MBean for the Queue in which you are interested (it will be in the 
jboss.mq.destination section).  Once you have found it, click on it and check 
out the listMessages operation (bottom of page).

Then look at the documentation for twiddle. 
http://docs.jboss.org/jbossas/jboss4guide/r2/html/ch2.chapter.html  It will let 
you query and invoke operations on the MBean.  It might even give you all of 
the data you need, in which case you are done (well, you might want to wrap 
twiddle in a script that is more directed to your usage) .  If not, then use 
the source code for twiddle to come up with your own code.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946609#3946609

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946609


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to