camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: How to completely disable redelivery in Camel 1.6.0
Date Fri, 28 Jan 2011 06:39:45 GMT
On Thu, Jan 27, 2011 at 8:24 PM, alik <> wrote:
> Hi.
> What is the easiest way to disable redelivery in Camel 1.6.0 using Sprint
> config XML? My routes are hard-coded so can't do much there. Disabling
> redelivering for the entire Camel context will be fine. From what I've read
> in this forum I understood that I should use errorHandlerRef property of the
> camelCintext. Do I have to define dead letter channel to be referenced by
> this property or there is a way to instruct Camel never even attempt to
> redeliver? If I have to define the dead letter channel what
> DeadLetterChannelBuilder properties I should provide in order to get the
> simplest dead letter channel that will always ignore anything it receives?
> Thank you,

You will have to define a spring <bean> as the DeadLetterChannel where
you configure the redelivery policy to use 0 as maximumRedeliveries.

See the dzone ref card which shows how to do this with Camel 1.x.

> --Alexander
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus
Author of Camel in Action:

View raw message