On Tue, May 26, 2009 at 8:13 AM, huntc <hu...@mac.com> 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: 
> http://www.nabble.com/throwFault-deprecated---what-is-the-equivalent-for-1.x--tp23717019p23717295.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to