private void invokeBeforeEnd() throws XAException { boolean throwingException = false; try { beforeEnd(); } catch (JMSException e) { throwingException = true; throw toXAException(e); } finally { try { setXid(null); } catch (XAException ignoreIfWillMask){ if (!throwingException) { throw ignoreIfWillMask; } } } }
/** * Associates a transaction with the resource. */ @Override public void start(Xid xid, int flags) throws XAException { LOG.debug("Start: {}, flags: {}", xid, XASupport.toString(flags)); if (isInLocalTransaction()) { throw new XAException(XAException.XAER_PROTO); } // Are we already associated? if (associatedXid != null) { throw new XAException(XAException.XAER_PROTO); } // if ((flags & TMJOIN) == TMJOIN) { // TODO: verify that the server has seen the xid // // } // if ((flags & TMRESUME) == TMRESUME) { // // TODO: verify that the xid was suspended. // } // associate synchronizations = null; beforeEndIndex = 0; setRollbackOnly(false); setXid(xid); }
private void invokeBeforeEnd() throws XAException { boolean throwingException = false; try { beforeEnd(); } catch (JMSException e) { throwingException = true; throw toXAException(e); } finally { try { setXid(null); } catch (XAException ignoreIfWillMask){ if (!throwingException) { throw ignoreIfWillMask; } } } }
private void invokeBeforeEnd() throws XAException { boolean throwingException = false; try { beforeEnd(); } catch (JMSException e) { throwingException = true; throw toXAException(e); } finally { try { setXid(null); } catch (XAException ignoreIfWillMask){ if (!throwingException) { throw ignoreIfWillMask; } } } }
private void invokeBeforeEnd() throws XAException { boolean throwingException = false; try { beforeEnd(); } catch (JMSException e) { throwingException = true; throw toXAException(e); } finally { try { setXid(null); } catch (XAException ignoreIfWillMask){ if (!throwingException) { throw ignoreIfWillMask; } } } }
/** * Associates a transaction with the resource. */ public void start(Xid xid, int flags) throws XAException { if (LOG.isDebugEnabled()) { LOG.debug("Start: " + xid); } if (isInLocalTransaction()) { throw new XAException(XAException.XAER_PROTO); } // Are we already associated? if (associatedXid != null) { throw new XAException(XAException.XAER_PROTO); } // if ((flags & TMJOIN) == TMJOIN) { // TODO: verify that the server has seen the xid // // } // if ((flags & TMJOIN) == TMRESUME) { // // TODO: verify that the xid was suspended. // } // associate synchronizations = null; beforeEndIndex = 0; setXid(xid); }
/** * Associates a transaction with the resource. */ @Override public void start(Xid xid, int flags) throws XAException { LOG.debug("Start: {}, flags: {}", xid, XASupport.toString(flags)); if (isInLocalTransaction()) { throw new XAException(XAException.XAER_PROTO); } // Are we already associated? if (associatedXid != null) { throw new XAException(XAException.XAER_PROTO); } // if ((flags & TMJOIN) == TMJOIN) { // TODO: verify that the server has seen the xid // // } // if ((flags & TMRESUME) == TMRESUME) { // // TODO: verify that the xid was suspended. // } // associate synchronizations = null; beforeEndIndex = 0; setRollbackOnly(false); setXid(xid); }
/** * Associates a transaction with the resource. */ @Override public void start(Xid xid, int flags) throws XAException { LOG.debug("Start: {}, flags: {}", xid, XASupport.toString(flags)); if (isInLocalTransaction()) { throw new XAException(XAException.XAER_PROTO); } // Are we already associated? if (associatedXid != null) { throw new XAException(XAException.XAER_PROTO); } // if ((flags & TMJOIN) == TMJOIN) { // TODO: verify that the server has seen the xid // // } // if ((flags & TMRESUME) == TMRESUME) { // // TODO: verify that the xid was suspended. // } // associate synchronizations = null; beforeEndIndex = 0; setRollbackOnly(false); setXid(xid); }
/** * Associates a transaction with the resource. */ @Override public void start(Xid xid, int flags) throws XAException { LOG.debug("Start: {}, flags: {}", xid, XASupport.toString(flags)); if (isInLocalTransaction()) { throw new XAException(XAException.XAER_PROTO); } // Are we already associated? if (associatedXid != null) { throw new XAException(XAException.XAER_PROTO); } // if ((flags & TMJOIN) == TMJOIN) { // TODO: verify that the server has seen the xid // // } // if ((flags & TMRESUME) == TMRESUME) { // // TODO: verify that the xid was suspended. // } // associate synchronizations = null; beforeEndIndex = 0; setRollbackOnly(false); setXid(xid); }