Description
We should try to avoid storing headers with are transient such as JpaEntityManager and other kinds. But instead allow access to them using a JpaMessage type that has a getter method to it,
Then ppl can access it using
EntityManager em = exchange.getIn(JpaMessage.class).getEntityManager();
See SO for a problem when using as a header
http://stackoverflow.com/questions/28608301/apache-camel-aggregate-persistence-and-hibernate
Attachments
Issue Links
- depends upon
-
CAMEL-9177 combination of JPA-Component, loop and wiretap throws entitymanger cloesd exception
- Resolved
- requires
-
CAMEL-8415 DefaultExchangeHolder - Only transfer primitive headers/properties
- Resolved