ejb3/src/main/java/org/jboss/as/ejb3/suspend/EJBSuspendHandlerService.java
@Override public void transactionCreated(AbstractTransaction transaction, CreatedBy createdBy) {
        activeTransactionCountUpdater.incrementAndGet(this);
        try {
            transaction.registerSynchronization(this);
        } catch (RollbackException | IllegalStateException e) {
            // it means the transaction is marked for rollback, or is prepared for commit, at this point we cannot register synchronization
            decrementTransactionCount();
        } catch (SystemException e) {
            decrementTransactionCount();
            EjbLogger.ROOT_LOGGER.debug("Unexpected exception", e);
            throw new RuntimeException(e);
        }
    }
@Override public void transactionCreated(AbstractTransaction transaction, CreatedBy createdBy) {
        activeTransactionCountUpdater.incrementAndGet(this);
        try {
            transaction.registerSynchronization(this);
        } catch (RollbackException | IllegalStateException e) {
            // it means the transaction is marked for rollback, or is prepared for commit, at this point we cannot register synchronization
            decrementTransactionCount();
        } catch (SystemException e) {
            decrementTransactionCount();
            EjbLogger.ROOT_LOGGER.debug("Unexpected exception", e);
            throw new RuntimeException(e);
        }
    }
@ Override public void transactionCreated ( AbstractTransaction transaction , CreatedBy createdBy ) { activeTransactionCountUpdater . incrementAndGet ( this ) ; try { transaction . registerSynchronization ( this ) ; } catch ( RollbackException | IllegalStateException e ) { // it means the transaction is marked for rollback, or is prepared for commit, at this point we cannot register synchronization decrementTransactionCount ( ) ; } catch ( SystemException e ) { decrementTransactionCount ( ) ; EjbLogger . ROOT_LOGGER . debug ( "Unexpected exception" , e ) ; throw new RuntimeException ( e ) ; } }
Notifies handler that a new transaction has been created.
Notifies handler that a new transaction has been created .