Just use simple only

setBody(simple("Bla bla ${header.foo} more bla bla"))

On Mon, Feb 24, 2014 at 11:03 PM, jay <[email protected]> wrote:
> Hi Viewers,
>
> Can some one point me what is going wrong here as i am unable to get the
> headers in the body. but it is logging out in the log.
>
> .log("CorrelationID" + simple("${in.header.correlationID}") ) --> i can see
> the correlationID in log.
> .setBody(Builder.constant("please find the " +
> simple("${in.header.correlationID}")+ "  CorrelationID"))
>
> Query - Cant i set the simple("${in.header.correlationID}") in
> Builder.constant?
>
> i really thankful if some one can help me on the issue?
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Builder-constant-unable-to-get-the-headers-tp5747890.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to