protected void closeSessions(CommandInvocationContext commandInvocationContext) { for (Session session : sessionList) { try { session.close(); } catch (Throwable exception) { commandInvocationContext.trySetThrowable(exception); } } }
protected void closeSessions(CommandInvocationContext commandInvocationContext) { for (Session session : sessionList) { try { session.close(); } catch (Throwable exception) { commandInvocationContext.trySetThrowable(exception); } } }
public void rollback() { try { try { LOG.debugTransactionOperation("firing event rollback..."); fireTransactionEvent(TransactionState.ROLLINGBACK); } catch (Throwable exception) { LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception); Context.getCommandInvocationContext().trySetThrowable(exception); } finally { LOG.debugTransactionOperation("rolling back the persistence session..."); getPersistenceProvider().rollback(); } } catch (Throwable exception) { LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception); Context.getCommandInvocationContext().trySetThrowable(exception); } finally { LOG.debugFiringEventRolledBack(); fireTransactionEvent(TransactionState.ROLLED_BACK); } }
public void rollback() { try { try { LOG.debugTransactionOperation("firing event rollback..."); fireTransactionEvent(TransactionState.ROLLINGBACK); } catch (Throwable exception) { LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception); Context.getCommandInvocationContext().trySetThrowable(exception); } finally { LOG.debugTransactionOperation("rolling back the persistence session..."); getPersistenceProvider().rollback(); } } catch (Throwable exception) { LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception); Context.getCommandInvocationContext().trySetThrowable(exception); } finally { LOG.debugFiringEventRolledBack(); fireTransactionEvent(TransactionState.ROLLED_BACK); } }
commandInvocationContext.trySetThrowable(exception); } finally { commandInvocationContext.trySetThrowable(exception); commandInvocationContext.trySetThrowable(exception); } finally { closeSessions(commandInvocationContext); commandInvocationContext.trySetThrowable(exception);
commandInvocationContext.trySetThrowable(exception); } finally { commandInvocationContext.trySetThrowable(exception); commandInvocationContext.trySetThrowable(exception); } finally { closeSessions(commandInvocationContext); commandInvocationContext.trySetThrowable(exception);
protected void closeSessions(CommandInvocationContext commandInvocationContext) { for (Session session : sessionList) { try { session.close(); } catch (Throwable exception) { commandInvocationContext.trySetThrowable(exception); } } }
commandInvocationContext.trySetThrowable(t);
commandInvocationContext.trySetThrowable(t);
public void rollback() { try { try { LOG.debugTransactionOperation("firing event rollback..."); fireTransactionEvent(TransactionState.ROLLINGBACK); } catch (Throwable exception) { LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception); Context.getCommandInvocationContext().trySetThrowable(exception); } finally { LOG.debugTransactionOperation("rolling back the persistence session..."); getPersistenceProvider().rollback(); } } catch (Throwable exception) { LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception); Context.getCommandInvocationContext().trySetThrowable(exception); } finally { LOG.debugFiringEventRolledBack(); fireTransactionEvent(TransactionState.ROLLED_BACK); } }
commandInvocationContext.trySetThrowable(exception); } finally { commandInvocationContext.trySetThrowable(exception); commandInvocationContext.trySetThrowable(exception); } finally { closeSessions(commandInvocationContext); commandInvocationContext.trySetThrowable(exception);
commandInvocationContext.trySetThrowable(t);