#1254 - SpringJdbcTransactionManager inifinite recursion #1254

Yeah, nah. This is the real fix. Expose:

   SpiTransaction TransctionManager.getInScope();

... and have ebean-spring-txn SpringJdbcTransactionManager call it instead of getActive().
This commit is contained in:
Rob Bygrave committed 2018-02-09 23:03:07 +13:00
1 parent 73b2cc55f3
commit 175714046a
6 files changed
+29 -23

No files matched your search

@@ -20,14 +20,14 @@ public abstract class TransactionScopeManager implements SpiTransactionScopeMana
public abstract void register(TransactionManager manager);
/**
* Return the current Transaction allowing it to be inactive.
* Return the current Transaction from internal Ebean scope.
*/
public abstract SpiTransaction getMaybeInactive();
public abstract SpiTransaction getInScope();
/**
* Return the current Transaction for this serverName and Thread.
* Return the current Transaction potentially looking in external scope (like Spring).
*/
public abstract SpiTransaction get();
public abstract SpiTransaction getActive();
/**
* Set a new Transaction for this serverName and Thread.