Did you checked [1] or [2]?

<simple>${bodyAs(String)}${property[empName]}</simple>
or
<ruby>$body$property['empName']</ruby>
or
...

[1] http://camel.apache.org/simple.html
[2] http://camel.apache.org/scripting-languages.html

Best,

Christian
-----------------

Software Integration Specialist

Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Sun, Jan 5, 2014 at 4:00 AM, camel user <cameluser2...@yahoo.in> wrote:

> I want to append a property set in the first route to the resultant XML of
> the serviceURI hit from the second route. If its possible, please let me
> know how.
>
> Sample snippet below.
>
> <route>
> --some stuff goes here--
> <setProperty
> propertyName="empName"><xpath>/result/empName/text()</xpath></setProperty>
> --some stuff goes here--
> <to uri="direct:route2">
> </route>
>
> <route>
> <from uri="direct:route2">
> <to uri="serviceURI"/>
> --${body} will have the resultant xml--
> --here I want to append empName(property defined in route 1) as an XML tag
> to ${body}--
> </route>
>
>
> Thanks!

Reply via email to