[ 
https://issues.apache.org/jira/browse/CAMEL-16470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino reassigned CAMEL-16470:
----------------------------------------

    Assignee: Andrea Cosentino

> Problem when using multiple EntityManagerFactories for different datasources 
> in the same route
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-16470
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16470
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jpa
>    Affects Versions: 3.7.3, 3.8.0, 3.9.0
>            Reporter: Tom Cassimon
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 3.7.4, 3.10.0
>
>
> When using multiple datasources for jpa in the same route, the EntityManager 
> first created gets reused for the second jpa call, but this is the wrong 
> EntityManager (for datasource 1 instead of datasource 2).
> This re-use is found in the JpaHelper class where the EntityManager is stored 
> as property on the Exchange.
> The outcome of this PR will still result in re-use of the Entitymanager but 
> storing the EntityManager in a map with the hashCode of the 
> EntityManagerFactory as a key.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to