WebSphereUowTransactionManager suspends synchronizations even without existing transaction (SPR-6167)

This commit is contained in:
Juergen Hoeller
2009-11-09 19:59:27 +00:00
parent c3bf658058
commit 90f8e5dcf8

View File

@@ -268,7 +268,7 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
if (debug) {
logger.debug("Creating new transaction with name [" + definition.getName() + "]: " + definition);
}
SuspendedResourcesHolder suspendedResources = (existingTx && !joinTx ? suspend(null) : null);
SuspendedResourcesHolder suspendedResources = (!joinTx ? suspend(null) : null);
try {
if (definition.getTimeout() > TransactionDefinition.TIMEOUT_DEFAULT) {
this.uowManager.setUOWTimeout(uowType, definition.getTimeout());