1 Reply Latest reply on Feb 20, 2006 6:23 AM by jaikiran pai

    How to introduce delay in the next onMessage() call

    Ramesh Raghavan Newbie

      I am processing a message in the onMessage() method of the MDB. While processing this message, I find that the destination where I am sending the message to is unavailable. So, I would rollback this transaction, so that the message is put back into the queue. Before returning from the current onMessage() call, I would like to tell JMS to not deliver message for the next 'n' seconds in order to introduce delay. How do I achieve this in JBoss?