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

Babak Vahdat updated CAMEL-6874:
--------------------------------

    Component/s: camel-jpa

> camel-jpa - Avoid sharing the same EntityManager object across JpaEndpoint, 
> it's Producers & Consumers as per se EntityManagers are not thread-safe.
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6874
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6874
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jpa
>    Affects Versions: 2.12.0
>            Reporter: Babak Vahdat
>            Assignee: Babak Vahdat
>             Fix For: 2.12.2, 2.13.0
>
>
> See http://camel.465427.n5.nabble.com/Build-failures-td5741273.html
> The JPA 2.0 Spec, section 7.2:
> {quote}
> An entity manager must not be shared among multiple concurrently executing 
> threads, as the entity manager and persistence context are not required to be 
> threadsafe. Entity managers must only be accessed in a single-threaded manner.
> {quote}
> The test {{org.apache.camel.processor.jpa.JpaProducerConcurrentTest}} is 
> relevant in this context.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to