@ -261,7 +261,8 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@@ -261,7 +261,8 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
"Transaction propagation 'nested' not supported for WebSphere UOW transactions");
@ -279,7 +280,8 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@@ -279,7 +280,8 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
"Transaction propagation 'mandatory' but no existing transaction found");
@ -293,6 +295,7 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@@ -293,6 +295,7 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
logger.debug("Creating new transaction with name ["+definition.getName()+"]: "+definition);
@ -300,7 +303,7 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@@ -300,7 +303,7 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@ -308,11 +311,15 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@@ -308,11 +311,15 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
logger.error("Application exception overridden by rollback exception",appEx);
tse.initApplicationException(appEx);
}
throwtse;
}
finally{
if(suspendedResources!=null){
@ -368,12 +375,15 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@@ -368,12 +375,15 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
}
catch(Throwableex){
this.exception=ex;
if(status.isDebug()){
logger.debug("Rolling back on application exception from transaction callback",ex);
}
uowManager.setRollbackOnly();
}
finally{
if(status.isLocalRollbackOnly()){
if(status.isDebug()){
logger.debug("Transactional code has requested rollback");
logger.debug("Transaction callback has explicitly requested rollback");
}
uowManager.setRollbackOnly();
}
@ -396,6 +406,11 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@@ -396,6 +406,11 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@ -172,14 +172,10 @@ public class TransactionTemplate extends DefaultTransactionDefinition
@@ -172,14 +172,10 @@ public class TransactionTemplate extends DefaultTransactionDefinition
ex2.initApplicationException(ex);
throwex2;
}
catch(RuntimeExceptionex2){
catch(RuntimeException|Errorex2){
logger.error("Application exception overridden by rollback exception",ex);
throwex2;
}
catch(Errorerr){
logger.error("Application exception overridden by rollback error",ex);