camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Copernico <>
Subject Re: Camel Velocity pass ArrayList
Date Fri, 28 Aug 2015 12:08:31 GMT
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: 


Dear ${}

You request ${headers.itemList.size} items

#foreach(${item} in ${headers.itemList})
 Item ${item.description} - ${item.price}          
#end *

Dear George

You request ${headers.itemList.size} items 

/(the item list should go here)/

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message