/** * Execute after successful completion of call, but not * after an exception was handled. * Do nothing if we didn't create a transaction. * @param txInfo information about the current transaction */ protected void doCommitTransactionAfterReturning(TransactionInfo txInfo) { if (txInfo != null && txInfo.hasTransaction()) { if (logger.isDebugEnabled()) { logger.debug("Invoking commit for transaction on " + txInfo.joinpointIdentification()); } this.transactionManager.commit(txInfo.getTransactionStatus()); } }
if (txInfo.transactionAttribute.rollbackOn(ex)) { if (logger.isDebugEnabled()) { logger.debug("Invoking rollback for transaction on " + txInfo.joinpointIdentification() + " due to throwable [" + ex + "]"); logger.debug(txInfo.joinpointIdentification() + " threw throwable [" + ex + "] but this does not force transaction rollback");
logger.debug("Getting transaction for " + txInfo.joinpointIdentification());