One of the options might be to follow the approach of using a monitor, which has been
mentioned at:
http://wiki.jboss.org/wiki/Wiki.jsp?page=DeadLetterQueues
Here's an extract:
anonymous wrote : If you don't want to write an MDB, you can just install a monitor
that fires a notification everytime the queue size changes.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978447#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...