Skip to content

Commit 90f8e5d

Browse files
committed
WebSphereUowTransactionManager suspends synchronizations even without existing transaction (SPR-6167)
1 parent c3bf658 commit 90f8e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.springframework.transaction/src/main/java/org/springframework/transaction/jta/WebSphereUowTransactionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ else if (pb == TransactionDefinition.PROPAGATION_NOT_SUPPORTED) {
268268
if (debug) {
269269
logger.debug("Creating new transaction with name [" + definition.getName() + "]: " + definition);
270270
}
271-
SuspendedResourcesHolder suspendedResources = (existingTx && !joinTx ? suspend(null) : null);
271+
SuspendedResourcesHolder suspendedResources = (!joinTx ? suspend(null) : null);
272272
try {
273273
if (definition.getTimeout() > TransactionDefinition.TIMEOUT_DEFAULT) {
274274
this.uowManager.setUOWTimeout(uowType, definition.getTimeout());

0 commit comments

Comments
 (0)