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: throwFault deprecated - what is the equivalent for 1.x?
Date Tue, 26 May 2009 06:09:57 GMT
On Tue, May 26, 2009 at 8:06 AM, huntc <huntc@mac.com> wrote:
>
> Thanks Claus. I presume you meant:
>
> .setFaultBody(constant("Unknown notification sent by fingerprint reader"))

Yeah :) Looks like it accepts a Expression as parameter. Maybe we
should add a String as well as its common to set a String body.
But with an expression it allows you to use eg the simple language to
dynamic create a string, like Groovy g strings. Mostly useable from
Spring XML
as in regular Java you can use String.format or just + the string as you like.




>
> --
> View this message in context: http://www.nabble.com/throwFault-deprecated---what-is-the-equivalent-for-1.x--tp23717019p23717251.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

Mime
View raw message