camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-8388) camel-jpa - Do not store CamelEntityManager as a header
Date Mon, 28 Sep 2015 06:48:04 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-8388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-8388:
-------------------------------
    Fix Version/s:     (was: 2.16.0)
                   Future

> 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: 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)

Mime
View raw message