OK. It's working now. I had to change my routerbuilder class. Before, i had a bean to query the items in the database, put the headers and send it to a queue. In another route, after consumed this, passed it to velocity component producer and send it with smtp.
Now i pass the query items to 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-ArrayList-tp5771027p5771062.html Sent from the Camel - Users mailing list archive at Nabble.com.