activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: Dead Letter Queue
Date Tue, 31 May 2011 16:47:23 GMT
for clientAck, that is needed, have a look at:

The automatic dlq processing occurs if onMessage throws an exception,
but it is bypassed for transactions and clientack mode as the acking
is out of control of the consumer in that case.

If you use autoack or activemq's individual ack mode, you will get
auto dlq processing (the PoisonAck) if onMessage throws a runtime

On 31 May 2011 17:02, rasitha1 <> wrote:
> Hi,
> Can you please expand a bit on this?
> "Typically you NAK a message by sending it to some bad message
> destination; i.e. you still consume it."
> I'm looking to use "individualDeadLetterStrategy" to separate failed
> messages into separate DLQs. But my client code (when using
> ClientAcknowledge mode) just creates a message manually to the default DLQ.
> (which I'm not sure is the right way)
> Looking at the source I see you need to send a special message
> (AckType=PoisonAck) to tell the broker that the message failed. How should I
> go about doing that?
> At the end I need to get failed messages into separate DLQs while using
> ClientAcknowledge mode.
> Thanks,
> Ras
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at


View raw message