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?
See the comment by schrouf at:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=66700