This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Number of messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Number of messages " Watch "Number of messages " New topic

Number of messages

rajesh bobbysands

Joined: Oct 29, 2007
Posts: 1

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:
subject: Number of messages
It's not a secret anymore!