camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <r...@evosent.com>
Subject Re: Camel Velocity pass ArrayList
Date Fri, 28 Aug 2015 12:17:43 GMT
Ah, of course, I missed that. Sifting through emails too quickly ;-)

What version of Camel are you on?

Could JPA lazy loading be the culprit here? Can you switch to eager loading?

*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 1:08 PM, Copernico <engcopernico@gmail.com> wrote:

> Yes. I'm sure. The code is working. All this code is inside a bean not in
> my
> route builder class. From the route builder, i generate the email, pass the
> template to velocity and send email.
>
> The code is working because i send the email to myself and i can see the
> body of the email as i said before:
>
> Template
>
> *
> Dear ${headers.name}
>
> You request ${headers.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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message