4 Replies Latest reply on Jul 18, 2007 1:55 PM by Adrian Brock

    monitoring queue for undelivered messages


      I wonder if there is any jboss specific API to see the number of undelivered messages in the queue.

      I send messages to queue always but my queuelistener picks up messages every 15 min. At this point I want to see how many messages are NEW in the queue.

      I could use QueueBrowser but that returns total number of messages in the queue.

      For eg , first I send 5 messages to queue . Now the count of messages is 5.
      At this point I process all those 5 messages.
      Next if I send 5 new messages , I want to see count of messages as 5 instead of 10 (total) , because only 5 messages are undelivered.
      QueueBrowser returns 10 in this case.