camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: throwFault deprecated - what is the equivalent for 1.x?
Date Tue, 26 May 2009 06:17:42 GMT
On Tue, May 26, 2009 at 8:13 AM, huntc <> wrote:
> I presume that setFaultBody has the same behaviour as throwFault right?
> My goal is to throw an exception and have the message got to the dead letter
> channel for retry processing.

Yes it has the same behavior. throwFault did not really throw an
exception as you can do in regular Java code.
It sets the FAULT message and then Camel detects this in its routing
and indicate the Exchange is failed and allow the DeadLetterChannel
to kick in and do redelivery or whatnot, just as if a regular
Exception was thrown.

> Thanks again.
> --
> View this message in context:
> Sent from the Camel - Users (activemq) mailing list archive at

Claus Ibsen
Apache Camel Committer

Open Source Integration:

View raw message