File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Number of messages Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Number of messages " Watch "Number of messages " New topic
Author

Number of messages

rajesh bobbysands
Greenhorn

Joined: Oct 29, 2007
Posts: 1
Hi,

Is there a way to find number messages sitting on a queue?

I know that we can use queue browser and iterate over all the messages and get the count.

But this caues me a performance issue.

Is there a way I can get the number of messages sitting on a queue without iterating over the messages?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Number of messages
 
Similar Threads
Setting JBoss JMS Queue size
Single MDB instane - multiple messages ?
Specifying JMS Queue size in OAS
ActiveMQ: message transactions/history to be permanently stored
Queue Depth - JMS