@Override public void end(final Xid xid, final int i) throws XAException { delegate.end(xid, i); }
try { xar.end(xid, XAResource.TMSUSPEND); entry.setValue(Boolean.FALSE); } catch (Exception e) {
Boolean isActive = (Boolean) resourceMap.get(xaRes); if (isActive.booleanValue()) { xaRes.end(xid, flag); resourceMap.put(xaRes, Boolean.FALSE);
if (isActive.booleanValue()) { xar.end(xid, XAResource.TMSUCCESS); entry.setValue(Boolean.FALSE);
if (isActive.booleanValue()) { xar.end(xid, XAResource.TMSUCCESS); entry.setValue(Boolean.FALSE);
@Override public void rollback() throws IllegalStateException, SystemException { try { Set<Map.Entry<XAResource, TestXid>> entries = xids.entrySet(); // delist for (Map.Entry<XAResource, TestXid> entry : entries) { try { entry.getKey().end(entry.getValue(), XAResource.TMSUCCESS); } catch (XAException e) { throw (SystemException) new SystemException(XAException.XAER_RMERR).initCause(e); } } // rollback for (Map.Entry<XAResource, TestXid> entry : entries) { try { entry.getKey().rollback(entry.getValue()); } catch (XAException e) { throw (SystemException) new SystemException(XAException.XAER_RMERR).initCause(e); } } } finally { fireAfterCompletion(Status.STATUS_ROLLEDBACK); } }
entry.getKey().end(entry.getValue(), XAResource.TMSUCCESS); } catch (XAException e) { throw (SystemException) new SystemException(XAException.XAER_RMERR).initCause(e);
/** * {@inheritDoc} */ public void end(Xid xid, int flags) throws XAException { xaResource.end(xid, flags); }
public void end(Xid arg0, int arg1) throws XAException { if (this.delegate == null) { return; } delegate.end(arg0, arg1); }
public void end(Xid arg0, int arg1) throws XAException { if (this.delegate == null) { return; } delegate.end(arg0, arg1); }
/** * Starts the resource. */ @Override public void end(Xid xid, int flags) throws XAException { _xaResource.end(xid, flags); }
/** * {@inheritDoc} */ public void end(Xid xid, int flags) throws XAException { if (pad) xid = convertXid(xid); xaResource.end(xid, flags); }
public void end(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) { log.trace("End called on XAResource " + getName() + "\n Xid: " + xid + "\n flags:" + decodeFlags(flags)); } xaResource.end(xid, flags); }
public void end(Xid xid, int flags) throws XAException { managedConnection.lock(); try { xaResource.end(xid, flags); } finally { managedConnection.unlock(); } }
public void end(Xid arg0, int arg1) throws XAException { try { getPhysicalXAResource().end(arg0, arg1); } catch (XAException ex) { release(); throw ex; } }
/** * {@inheritDoc} */ @Override public void rollback() throws ResourceException { try { resource.end(xid, XAResource.TMFAIL); resource.rollback(xid); } catch (XAException e) { throw new ResourceException(e.getMessage()); } }
public void end(Xid xid, int flags) throws XAException { print("XAResource.end: " + xidToString(xid) + "," + flagToString(flags)); res.end(xid, flags); }
/** * {@inheritDoc} */ @Override public void rollback() throws ResourceException { try { resource.end(xid, XAResource.TMFAIL); resource.rollback(xid); } catch (XAException e) { throw new ResourceException(e.getMessage()); } }
@Override public void end(final Xid xid, final int flags) throws XAException { XAResource xaResource = getDelegate(false); if (ActiveMQXARecoveryLogger.LOGGER.isDebugEnabled()) { ActiveMQXARecoveryLogger.LOGGER.debug("end " + xaResource + " xid "); } try { xaResource.end(xid, flags); } catch (XAException e) { throw check(e); } }
@Override public void afterDelivery() throws ResourceException { try { xaResource.end(xid, XAResource.TMSUCCESS); } catch (XAException e) { throw new ResourceException(e.getMessage(), e); } super.afterDelivery(); }