6 Replies Latest reply on Nov 7, 2005 5:41 PM by Shafiek Savahl

    JbossMQ and browsing of Scheduled for Delivery Messages

    Shafiek Savahl Newbie

      Hello

      I am using Jboss 4.0.3 SP1 and I would like to browse messages that are in a queue that have been scheduled for redelivery.

      The scenario is that

      - I have set the RedeliveryDelay on a queue to be 30000 ms
      - A message is processed by an MDB which fails to process the message and throws an EJBException (this is the bahaviour I think I want)
      - Looking at the JBoss implementation of a BasicQueue it seems that the message is then placed in an events object that is used for redelivery scheduling.
      - Once the message is placed in the events object it seems that when you attempt to browse/view messages in the queue, you are unable to view those messages in the events object.
      - I can view the number of messages in the events object by calling the method getScheduledMessageCount, but I do not seem to be able to access the messages themselves.

      I am unable to find anything in the forums that mention anything regarding this. Is there anyway to browse/list these messages.

      Thanks

      Shafiek