protected void fireAfterCommit() throws Exception { for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.afterCommit(); } }
public void fireAfterRollback() throws Exception { Collections.reverse(synchronizations); for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.afterRollback(); } }
protected void fireBeforeCommit() throws Exception { for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.beforeCommit(); } }
private void beforeEnd() throws JMSException { if (synchronizations == null) { return; } int size = synchronizations.size(); try { for (;beforeEndIndex < size;) { synchronizations.get(beforeEndIndex++).beforeEnd(); } } catch (JMSException e) { throw e; } catch (Throwable e) { throw JMSExceptionSupport.create(e); } }
private void beforeEnd() throws JMSException { if (synchronizations == null) { return; } int size = synchronizations.size(); try { for (;beforeEndIndex < size;) { synchronizations.get(beforeEndIndex++).beforeEnd(); } } catch (JMSException e) { throw e; } catch (Throwable e) { throw JMSExceptionSupport.create(e); } }
private void afterRollback() throws JMSException { if (synchronizations == null) { return; } Throwable firstException = null; int size = synchronizations.size(); for (int i = 0; i < size; i++) { try { synchronizations.get(i).afterRollback(); } catch (Throwable t) { LOG.debug("Exception from afterRollback on {}", synchronizations.get(i), t); if (firstException == null) { firstException = t; } } } synchronizations = null; if (firstException != null) { throw JMSExceptionSupport.create(firstException); } }
private void afterCommit() throws JMSException { if (synchronizations == null) { return; } Throwable firstException = null; int size = synchronizations.size(); for (int i = 0; i < size; i++) { try { synchronizations.get(i).afterCommit(); } catch (Throwable t) { LOG.debug("Exception from afterCommit on {}", synchronizations.get(i), t); if (firstException == null) { firstException = t; } } } synchronizations = null; if (firstException != null) { throw JMSExceptionSupport.create(firstException); } }
protected void fireBeforeCommit() throws Exception { for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.beforeCommit(); } }
private void beforeEnd() throws JMSException { if (synchronizations == null) { return; } int size = synchronizations.size(); try { for (;beforeEndIndex < size;) { synchronizations.get(beforeEndIndex++).beforeEnd(); } } catch (JMSException e) { throw e; } catch (Throwable e) { throw JMSExceptionSupport.create(e); } }
public void fireAfterRollback() throws Exception { Collections.reverse(synchronizations); for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.afterRollback(); } }
protected void fireAfterCommit() throws Exception { for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.afterCommit(); } }
protected void fireBeforeCommit() throws Exception { for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.beforeCommit(); } }
private void beforeEnd() throws JMSException { if (synchronizations == null) { return; } int size = synchronizations.size(); try { for (;beforeEndIndex < size;) { synchronizations.get(beforeEndIndex++).beforeEnd(); } } catch (JMSException e) { throw e; } catch (Throwable e) { throw JMSExceptionSupport.create(e); } }
public void fireAfterRollback() throws Exception { Collections.reverse(synchronizations); for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.afterRollback(); } }
protected void fireAfterCommit() throws Exception { for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.afterCommit(); } }
protected void fireBeforeCommit() throws Exception { for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.beforeCommit(); } }
private void beforeEnd() throws JMSException { if (synchronizations == null) { return; } int size = synchronizations.size(); try { for (;beforeEndIndex < size;) { synchronizations.get(beforeEndIndex++).beforeEnd(); } } catch (JMSException e) { throw e; } catch (Throwable e) { throw JMSExceptionSupport.create(e); } }
public void fireAfterRollback() throws Exception { Collections.reverse(synchronizations); for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.afterRollback(); } }
protected void fireAfterCommit() throws Exception { for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.afterCommit(); } }
protected void fireBeforeCommit() throws Exception { for (Iterator<Synchronization> iter = synchronizations.iterator(); iter.hasNext();) { Synchronization s = iter.next(); s.beforeCommit(); } }