On Tue, May 26, 2009 at 8:06 AM, huntc <hu...@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