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

camel-jpa producer does not reuse existing EntityManager in transaction and create its own one

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.0
    • 3.18.2, 3.19.0
    • camel-jpa
    • None
    • Unknown

    Description

      camel-jpa producer does not reuse the existing EntityManager in transaction and create its own one.

      This happens when JpaTransactionManager is used. It creates an EntityManager for transactions in the doBegin() method.
      So there will be two EntityManagers and two connections even if there is only one route for the jpa producer.

      Attachments

        Issue Links

          Activity

            People

              zhfeng Zheng Feng
              zhfeng Zheng Feng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: