This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How can I know how many messages remain in JMS Queue? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How can I know how many messages remain in JMS Queue?" Watch "How can I know how many messages remain in JMS Queue?" New topic
Author

How can I know how many messages remain in JMS Queue?

Along huang
Ranch Hand

Joined: Feb 09, 2004
Posts: 72
I am developing a SMS(short message) system, it relate to send millions of messages to user's mobile phones, so I use JMS to keep the messages temporaryly, and the system must load data from database into JMS Server group by group.

When first group messages is nearly consumed over, the system must detect the status of JMS server(how many messages remain), so that it can load second group messages in time.

The problem is that how can I know how many messages remain in Queue?

Along


SCJP1.4 SCJD 2<br />SCEA(In progressing)
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
JMS has something called a QueueBrowser that you may want to read up on and see if it will do what you want it to do.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
 
jQuery in Action, 2nd edition
 
subject: How can I know how many messages remain in JMS Queue?
 
Similar Threads
Persistent Messages, What heppens if a system is started!
Help with JMS solutions
Message-driven bean acknowledgment.
consuming messages from JMS Queue without other group having to do anything
Specifying JMS Queue size in OAS