camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From janne postilista <>
Subject Re: How do I configure a custom dead letter queue with transacted JMS route?
Date Thu, 12 May 2011 07:54:06 GMT
Yes I know, but is it really so that you absolutely cannot configure
this (dead letters location) in camel?

I my case it would be preferable to configure it inside camel. For
example storing the failed message in filesystem, logging something
when it happens, etc. Having the same "dead letters" location with JMS
routes and other routes would be nice. Is it possible to achieve this
using custom errorhandlers for my queues, while defining the queue as
transactional at the same time?

On Thu, May 12, 2011 at 10:47 AM, Claus Ibsen <> wrote:
> On Thu, May 12, 2011 at 9:26 AM, janne postilista
> <> wrote:
>> I have a route which reads from JMS queue A, does some processing, and
>> writes to queue B.
>> I want the queue to be transactional. I also want to define my own
>> custom dead letter queue for the failed messages.
> ActiveMQ has dead letter queue support
> Just use that if you want to use a JMS queue for failed messages.
>> Based on this post
>> this is not possible? Once you use transactions with JMS route, JMS
>> server (ActiveMQ) has all the control over redeliveries and dead
>> message queues when transaction fails.
>> Isn't this a big flaw? Often there's need to
>> 1. Guarantee messages are not lost in case of server crashes, etc
>> 2. Configure processing of failed messages differently from successful
>> messages, inside Camel. For example, I might have a case where
>> successful message should be sent to JMS queue X, or FTP location Y,
>> or whatever, but failed message should be stored on filesystem.
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email:
> Web:
> CamelOne 2011:
> Twitter: davsclaus
> Blog:
> Author of Camel in Action:

View raw message