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:09:57 GMT
On Tue, May 26, 2009 at 8:06 AM, huntc <> 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:
> Sent from the Camel - Users (activemq) mailing list archive at

Claus Ibsen
Apache Camel Committer

Open Source Integration:

View raw message