You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Olivier Sambourg (JIRA)" <ji...@apache.org> on 2014/09/19 15:22:34 UTC

[jira] [Commented] (CAMEL-7364) JpaMessageIdRepository uses EntityManager non thread-safe

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

Olivier Sambourg commented on CAMEL-7364:
-----------------------------------------

Will this fix be backported to Camel 2.13.x ? 2.14.x dropped Java 1.6 support so we're currently stuck with 2.10 (as 2.11/2.12/2.13 are impacted)
Thanks!

> JpaMessageIdRepository uses EntityManager non thread-safe
> ---------------------------------------------------------
>
>                 Key: CAMEL-7364
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7364
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jpa
>    Affects Versions: 2.12.3
>         Environment: tomcat 7.0.32, hibernate 4.1.4.Final, spring 3.1.4.RELEASE
>            Reporter: Denis Galkin
>            Assignee: Claus Ibsen
>             Fix For: 2.14.0
>
>
> In our product we have found strange behavior of JpaMessageIdRepository when change version 2.9.2 to 2.12.3.
> The reason for this was that EntityManager assigned in the constructor org.apache.camel.processor.idempotent.jpa.JpaMessageIdRepository, but
> EntityManager not required to be thread safe.
> http://download.oracle.com/otn-pub/jcp/persistence-2.0-fr-oth-JSpec/persistence-2_0-final-spec.pdf page 286.
> I think need assign the EntityManager in each method separately.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)