Re: Camel Velocity pass ArrayList

2015-08-28 Thread Raul Kripalani
; 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. >

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Copernico
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

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Copernico
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.

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Raul Kripalani
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)/ > * > > > >

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Copernico
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.

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Raul Kripalani
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. >

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Copernico
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.

Re: Camel Velocity pass ArrayList

2015-08-27 Thread Raul Kripalani
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, > > > > > >

Camel Velocity pass ArrayList

2015-08-27 Thread Copernico
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.