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
ChainedTransactionManager does not work with latest spring [DATACMNS-803] #1266
Comments
Murali Mohan Rath commented I think this could also be related to https://jira.spring.io/browse/SPR-13838. The JmsTransactionManager(1st one to commit or rollback) is setting actualTransactiveActive to false and thus JpaTransactionManager breaks |
Murali Mohan Rath commented I had another go with spring 4.3.0-BUILD-SNAPSHOT and it works. However I still think it probably needs improvement |
Oliver Drotbohm commented I played with the example provided and observed the following:
Would you mind altering the example to produce a test case that fails and basically shows what you refer to as "not working"? It's not entirely clear from your description above |
Murali Mohan Rath commented Thanks for having a look If I change the ChainedTransactionManager to have JpaTransactionManager after Jms one, then the test passes |
Oliver Drotbohm commented I can see this working when I upgrade to a recent Boot (1.3.5, pulling in Spring Framework 4.2.6). Also manually upgrading to Spring Framework to that version or even 4.3.0 makes the test case work |
Murali Mohan Rath commented Hi Oliver, With the latest spring it works. So I am happy for it to be closed |
Mark Paluch commented Closing as per comment |
Murali Mohan Rath opened DATACMNS-803 and commented
A chained transaction manager with a JpaTransactionManager and a JmsTransactionManager does not work with spring boot 1.3.1 but it works with spring boot 1.2.6. This is more to do with spring version change than spring boot itself. I have attached a sample project which demonstrates the issue.
In the attached project, if spring boot version is changed from 1.3.1 to 1.2.6 the transactional method com.example.MyComponent#createRecord completed successfully. But with 1.3.1 it does not.
It might be related to the changes done for https://jira.spring.io/browse/SPR-13243
Affects: 1.11.2 (Gosling SR2)
Attachments:
Issue Links:
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: