Such a static unmodifiable TransactionDefinition with defaults can be used for getTransaction(null) calls, now also possible for getReactiveTransaction. Furthermore, it can be used for a simple TransactionalOperator.create(ReactiveTransactionManager) method without an internal dependency on the transaction.support package.
See gh-22646
@ -233,17 +232,15 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@@ -233,17 +232,15 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@ -292,19 +289,19 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
@@ -292,19 +289,19 @@ public class WebSphereUowTransactionManager extends JtaTransactionManager
booleandebug=logger.isDebugEnabled();
if(debug){
logger.debug("Creating new transaction with name ["+definition.getName()+"]: "+definition);
logger.debug("Creating new transaction with name ["+def.getName()+"]: "+def);
@ -95,7 +95,12 @@ public abstract class AbstractReactiveTransactionManager implements ReactiveTran
@@ -95,7 +95,12 @@ public abstract class AbstractReactiveTransactionManager implements ReactiveTran
@ -106,22 +111,22 @@ public abstract class AbstractReactiveTransactionManager implements ReactiveTran
@@ -106,22 +111,22 @@ public abstract class AbstractReactiveTransactionManager implements ReactiveTran
if(isExistingTransaction(transaction)){
// Existing transaction found -> check propagation behavior to find out how to behave.
@ -131,14 +136,14 @@ public abstract class AbstractReactiveTransactionManager implements ReactiveTran
@@ -131,14 +136,14 @@ public abstract class AbstractReactiveTransactionManager implements ReactiveTran
.defaultIfEmpty(Optional.empty())
.flatMap(suspendedResources->{
if(debugEnabled){
logger.debug("Creating new transaction with name ["+definition.getName()+"]: "+definition);
logger.debug("Creating new transaction with name ["+def.getName()+"]: "+def);
@ -147,11 +152,11 @@ public abstract class AbstractReactiveTransactionManager implements ReactiveTran
@@ -147,11 +152,11 @@ public abstract class AbstractReactiveTransactionManager implements ReactiveTran
}
else{
// Create "empty" transaction: no actual transaction, but potentially synchronization.
@ -338,45 +338,43 @@ public abstract class AbstractPlatformTransactionManager implements PlatformTran
@@ -338,45 +338,43 @@ public abstract class AbstractPlatformTransactionManager implements PlatformTran
@ -386,12 +384,12 @@ public abstract class AbstractPlatformTransactionManager implements PlatformTran
@@ -386,12 +384,12 @@ public abstract class AbstractPlatformTransactionManager implements PlatformTran
}
else{
// Create "empty" transaction: no actual transaction, but potentially synchronization.