[ 
https://issues.apache.org/jira/browse/CAMEL-8388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14341435#comment-14341435
 ] 

Claus Ibsen commented on CAMEL-8388:
------------------------------------

This will be fixed by CAMEL-8415

> 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
>             Fix For: 2.16.0
>
>
> 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)

Reply via email to