users@glassfish.java.net

Re: poison messages ?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Fri, 6 Feb 2009 19:23:49 +0100

you can ignore this message.. I found the problem :)

On Fri, Feb 6, 2009 at 5:29 PM, Felipe Gaúcho <fgaucho_at_gmail.com> wrote:
> I am having problems with "poison messages" in Glassfish..
>
> I am using the standard Glassfish v2 installation, including message
> queues and MDB, etc...
>
> a message is delivered to the queue, consumed by a MDB that throws an
> exception, and the message is then redelivered - creating the
> deadlock...
>
> how to avoid ? workaraound this ?
>
> if I don't throw exceptions, the message will be considered consumed ?
> what kind of method or exception may I use to force the message to not
> be redelivered?
>