camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Simple enrich of a pojo
Date Mon, 22 Feb 2016 15:51:41 GMT
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
<abrosich@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

Mime
View raw message