activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Transferring messages to a Dead Letter Queue on a Custom Exception on Message Consumer side.
Date Thu, 18 Jul 2013 21:47:12 GMT
Try using transactions, set max redelivery to 0 and call rollback on
exception.

On Thursday, July 18, 2013, Tushar Nagar wrote:

> Hi,
>
> I hv been trying this but was unable to find it anywhere. I hv a scenario
> where I hv a queue in ActiveMQ and on the message consumer side If I
> encounter an exception while processing that message, I want this message
> to
> be en-queued in the dead letter queue/Poison Queue. The condition here is,
> I
> don't want my consumer to send me the message if an exception occurs. I
> need
> to handle that internally as my consumer is an another application.
>
> It would be really appreciable if anybody can help me with this.
>
> Thanks in advance.
>
> Tushar Nagar
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Transferring-messages-to-a-Dead-Letter-Queue-on-a-Custom-Exception-on-Message-Consumer-side-tp4669435.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message