Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7364

JpaMessageIdRepository uses EntityManager non thread-safe

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.12.3
    • Fix Version/s: 2.14.0
    • Component/s: camel-jpa
    • Labels:
      None
    • Environment:

      tomcat 7.0.32, hibernate 4.1.4.Final, spring 3.1.4.RELEASE

    • Estimated Complexity:
      Moderate

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                gala Denis Galkin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: