Claus Ibsen created CAMEL-8388:
----------------------------------

             Summary: 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.15.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