In JBM 1.x, we have a getMessageCount() bean method.
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).
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().
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.