I assume you mean a JMS queue. Is your class Serializable? If not, it'll
not get passed on.

Try making it Serializable and let us know.

Thanks,

*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Fri, Aug 28, 2015 at 2:52 PM, Copernico <engcopern...@gmail.com> wrote:

> 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.
>

Reply via email to