public static < T > T withinTx ( AdvancedCache cache , Callable < T > c ) throws Exception { // Retrieve transaction manager return withinTx ( cache . getTransactionManager ( ) , c ) ; }
Call an operation within a transaction . This method guarantees that the right pattern is used to make sure that the transaction is always either committed or rollback .