Browse Source

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

pull/23217/head
Juergen Hoeller 15 years ago
parent
commit
90f8e5dcf8
  1. 2
      org.springframework.transaction/src/main/java/org/springframework/transaction/jta/WebSphereUowTransactionManager.java

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

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

Loading…
Cancel
Save