[
https://issues.apache.org/jira/browse/CAMEL-8388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-8388:
-------------------------------
Priority: Minor (was: Major)
> camel-jpa - Do not store CamelEntityManager as a header
> -------------------------------------------------------
>
> Key: CAMEL-8388
> URL: https://issues.apache.org/jira/browse/CAMEL-8388
> Project: Camel
> Issue Type: Improvement
> Components: camel-jpa
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: Future
>
>
> 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
> {code}
> EntityManager em = exchange.getIn(JpaMessage.class).getEntityManager();
> {code}
> See SO for a problem when using as a header
> http://stackoverflow.com/questions/28608301/apache-camel-aggregate-persistence-and-hibernate
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)