4 Replies Latest reply on Nov 16, 2009 10:36 AM by rbenko

    How can I find out the in-process message count for Queues i

      In JBossMQ, QueueMBean had a getInProcessMessageCount(). However, I haven't found an equivalent to it in JBoss Messaging. Can anyone help?

        • 1. Re: How can I find out the in-process message count for Queu
          gaohoward

          In JBM 1.x, we have a getMessageCount() bean method.

          • 2. Re: How can I find in-process message count for JBM Queues?

            getMessageCount() is not the same thing - it counts the number of messages currently in the queue. I need the number of messages currently being processed - i.e. the message has been delivered to the consumer, but it hasn't been fully 'consumed' yet.

            I need it to verify that the MDB's onMessage() method has fully consumed and committed ALL messages in the queue. In JBossMQ, the getInProcessMessageCount() did that - I haven't found a getter in JBM that does the same thing. I thought getDeliveringCount() would be it, but it doesn't seem like it (not really sure what it is).

            Anybody? Bueller??

            • 3. Re: How can I find out the in-process message count for Queu
              gaohoward

              getDeliveringCount() returns the number of messages in the queue that is being delivered but not acknowledged yet. I think this is the equivalent to getInProcessMessageCount().

              • 4. Re: How can I find out the in-process message count for Queu

                Thanks for your replies, gaohoward - nice to know that someone is out there with at least a passing interest in this question!! :-)

                I've tried the getDeliveringCount(), but it doesn't seem like it is exactly the same - I need to perform a few more tests to verify. I believe what you said about getDeliveringCount() is correct; however, I believe that the ACK sent by the MDB is when it STARTS processing the message. I need to know if, after the queue is empty, whether any MDBs are still processing messages received from the queue. The getInProcessMessageCount() in JBossMQ returned exactly that. Now, it's hard to believe that they would strip out that piece of information from JBM, but I can't seem to figure out how to retrieve that exact information.