We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d80c6cc commit d417992Copy full SHA for d417992
src/main/java/org/mybatis/cdi/LocalTransactionInterceptor.java
@@ -63,14 +63,17 @@ public Object invoke(InvocationContext ctx) throws Exception {
63
}
64
finally {
65
if (isInitiator) {
66
- if (needsRollback) {
67
- rollback(transactional);
68
- }
69
- else {
70
- commit(transactional);
+ try {
+ if (needsRollback) {
+ rollback(transactional);
+ }
+ else {
71
+ commit(transactional);
72
73
+ } finally {
74
+ close();
75
+ endJta(isExternalJta, needsRollback);
76
- close();
- endJta(isExternalJta, needsRollback);
77
78
79
return result;
0 commit comments