camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
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 <fe.danetot@gmail.com> 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.
http://refcardz.dzone.com/refcardz/enterprise-integration


> --Alexander
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-completely-disable-redelivery-in-Camel-1-6-0-tp3360294p3360294.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message