I just had a thought whilst walking my dog. In the past when I have got JPA
updating the database it has been in a TypeConverter class and what I had to
do was .....

JpaTemplate template =
exchange.getIn().getHeader(CamelConstants.HEADER_KEY_JPA_TEMPLATE,
JpaTemplate.class);
template.persist(item); 


So having a think about that I went into my type converter and tried to grab
this header but to my surprise it wasn't there. 

Will be thinking about this more... ideas are welcome.

thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/JPA-Consumed-tp5744640p5744641.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to