Theoretically it would be possible to browse over the union of the set of messages
actually in the queue, and the set in the delivery state, but this would be fairly tricky
to implement since they are scattered over the various server side consumers.
Also please be warned that setting prefetchsize to a very low value can have an adverse
effect on performance.
Finally, bear in mind, that, according to the JMS spec, queue browsers are not required to
give an accurate or static picture of the queue.
The moral of the story is never use queue browsers if you want an absolutely accurate
picture of what's in a queue at any one time, especially if it's active.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049536#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...