Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared EntityManager's target lookup doesn't work with Spring Data's ChainedTransactionManager [SPR-14371] #18944

Closed
spring-projects-issues opened this issue Jun 16, 2016 · 1 comment
Assignees

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jun 16, 2016

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:

  • #18411 Regression: Shared EntityManager proxy insists on actualTransactiveActive flag even with SYNCHRONIZATION_NEVER
  • #16541 Shared EntityManager should immediately throw TransactionRequiredException if no transaction in progress
  • #17834 Inconsistent JPA behavior using no transaction, propagation SUPPORTS and OpenEntityManager pattern
  • DATACMNS-803 ChainedTransactionManager does not work with latest spring
@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 22, 2016

Juergen Hoeller commented

I'm afraid this works as designed from the core framework's perspective, in particular with the recent refinements in #17834. Let's sort this out in the associated Spring Data ticket instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.