The simple language wasn't really intended for this, though you can
use the script dsl
http://camel.apache.org/script

Where you can use simple, groovy, mvel, etc for such an use-case.




On Mon, Feb 22, 2016 at 4:05 PM, Alberto Brosich
<abros...@ogs.trieste.it> wrote:
>
> Hello,
>
> I have to enrich a pojo using the value of an header.
> I'm using a Processor but I'm wondering if there is a simpler method.
>
> using
>
> .enrich.simple("${body.setAttribute(${header.HeaderName})}") obviously
> doesn't work because the setter returns null, not the pojo.
>
>
> Regards
>
> Alberto
>
>
>
>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to