Shared EntityManager's target lookup doesn't work with Spring Data's ChainedTransactionManager [SPR-14371] #18944
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: declined
A suggestion or change that we don't feel we should currently apply
Sathishkumar Murugesan opened SPR-14371 and commented
If we have more than one TransactionManager involved, and If we invoke JmsTransactionManager first, followed by JPATransactionManager then JPATransactionManager is coming as null. which eventually breaks code.
Exact Scenario is explained by Murali Mohan Rath : He raised a related bug at https://jira.spring.io/browse/DATACMNS-803
Because of this issue we were not able to migrate from Spring 4.1.6 to any higher Spring Version
This issue is already raised in #17834. and latest comment from Juergen Hoeller below
As for the target suddenly being null in some scenarios on 4.x, this seems to be a separate issue not caused by the changes behind #17834( #18411). Let's create a separate JIRA issue for that scenario if it remains to be a problem.
This issue is not still resolved in Spring 4.3.0 also.
.
Affects: 4.2.1, 4.2.5, 4.2.6, 4.3 GA
Reference URL: http://stackoverflow.com/questions/34494754/upgraded-from-spring-4-1-6-to-4-2-4-and-suddenly-getting-transactionrequiredexce
Issue Links:
The text was updated successfully, but these errors were encountered: