; camel does not keep references to the object pased in the header.
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Velocity-pass-ArrayList-tp5771027p5771062.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
o the velocity template directly and then send
it to the queue where the other route sends the email. I don't know why
camel does not keep references to the object pased in the header.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Velocity-pass
g it correctly to velocity, but if i put something like
exchange.getIn().setHeader("name", "Copernico");
An in template
Hola ${headers.name}
y gets
Hola Copernico
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Velocity-pass-ArrayList-tp5771027p5771059.html
Sent from the Camel - Users mailing list archive at Nabble.com.
eaders.itemList.size} items
>
> #foreach(${item} in ${headers.itemList})
> Item ${item.description} - ${item.price}
> #end *
>
> Email
> *
> Dear George
>
> You request ${headers.itemList.size} items
>
> /(the item list should go here)/
> *
>
>
>
>
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Velocity-pass-ArrayList-tp5771027p5771054.html
Sent from the Camel - Users mailing list archive at Nabble.com.
rray list in a foreach loop in velocity?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Velocity-pass-ArrayList-tp5771027p5771052.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
h loop in velocity?
Thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Velocity-pass-ArrayList-tp5771027p5771052.html
Sent from the Camel - Users mailing list archive at Nabble.com.
ist.size}
>
> Dear George
>
> The items
>
> You request ${headers.itemList.size} items
>
>
> Any Ideas? How i pass objects like a pojo, a jpa entity, an arraylist to
> the
> velocity template and access to their properties?
>
> Thanks,
>
>
>
>
>
>
nks,
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Velocity-pass-ArrayList-tp5771027.html
Sent from the Camel - Users mailing list archive at Nabble.com.