users@glassfish.java.net

JMS Queues/MDB: Possibility to configure delay after exception?

From: <glassfish_at_javadesktop.org>
Date: Thu, 30 Apr 2009 03:56:26 PDT

Hi,

I wonder, if it is possible to configure a delay to requeue a message that causes an exception. Or is there a better way to handle exceptions in message driven beans? I don't want to delete the message.

On default, a runtime exception in a message driven bean causes a retry, without any delay.

Should I requeue the message by my own, with an delay (using a timer).
Should I send this message (after x retries) to a failure queue?

With regards
[Message sent by forum member 'hegalor' (hegalor)]

http://forums.java.net/jive/thread.jspa?messageID=344445