You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zheng Feng (Jira)" <ji...@apache.org> on 2022/08/10 06:13:00 UTC

[jira] [Created] (CAMEL-18377) camel-jpa producer does not reuse existing EntityManager in transaction and create its own one

Zheng Feng created CAMEL-18377:
----------------------------------

             Summary: camel-jpa producer does not reuse existing EntityManager in transaction and create its own one
                 Key: CAMEL-18377
                 URL: https://issues.apache.org/jira/browse/CAMEL-18377
             Project: Camel
          Issue Type: Bug
          Components: camel-jpa
    Affects Versions: 3.18.0
            Reporter: Zheng Feng
            Assignee: Zheng Feng


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)