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

Claus Ibsen commented on CAMEL-18377:
-------------------------------------

Can you backport to 3.18.x branch

> 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
>            Priority: Major
>             Fix For: 3.18.2, 3.19.0
>
>
> 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)

Reply via email to