1 Reply Latest reply on Dec 16, 2003 4:17 PM by Adrian Brock

    Browse/Remove messages awaiting redelivery

    David Stoleson Newbie

      Problem:

      How can I remove messages from a queue when the message has a JMS_JBOSS_REDELIVERY_DELAY value set.

      Scenario:

      A message is sent to a queue 'A' and received by an MDB, the processing of the message fails and the message is subsequently put on queue 'B' with the JMS_JBOSS_REDELIVERY_DELAY set.

      I would like to now create a QueueBrowser to browse queue 'B' and view all the outstanding messages awaiting redelivery. This doesn't work because the messages don't seem to actually be on the queue. They seem to be in a pending state until the redelivery delay has expired at which point they are put on the queue and delivered immediately.

      My question is, how can I get ahold of the messages that are in this pending state. I can view the # of messages in the pending state in the jmx-console but I would like to be able to browse the messages and eventually handle the messages in some way, such as moving or deleting them.

      Any advice or pointers are appreciated.

      Thanks.

      -dave