@Override public int prepare(final Xid xid) throws XAException { return delegate.prepare(xid); }
int prepareStatus = entry.getKey().prepare(entry.getValue()); if (prepareStatus != XAResource.XA_RDONLY) { preparedResources.add(entry.getKey());
public int prepare(Xid arg0) throws XAException { if (this.delegate == null) { return XAResource.XA_RDONLY; } return delegate.prepare(arg0); }
/** * {@inheritDoc} */ public int prepare(Xid xid) throws XAException { return xaResource.prepare(xid); }
/** * {@inheritDoc} */ public int prepare(Xid xid) throws XAException { if (pad) xid = convertXid(xid); return xaResource.prepare(xid); }
@Override public int prepare(Xid xid) throws XAException { return getResource().prepare(xid); }
public int prepare(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Prepare called on XAResource " + getName() + "\n Xid: " + xid); } return xaResource.prepare(xid); }
/** * Delegates XAResource#prepare call to the connected JMS resource. * * @param xid * @return Prepare outcome * @throws XAException */ @Override public int prepare(Xid xid) throws XAException { return connectionManager.connectAndApply(delegate -> delegate.prepare(xid)); }
public int prepare(Xid xid) throws XAException { try { return resource.prepare(xid); } catch (XAException e) { throw getXAException(e); } }
public int prepare(Xid xid) throws XAException { xid = convertXid(xid); return xaResource.prepare(xid); }
@Override public int prepare(Xid xid) throws XAException { try { return xaresource.prepare(xid); } catch (XAException e) { logger.error("XA prepare error on " + systemToString(xid), e); throw e; } }
public int prepare(Xid xid) throws XAException { XAResource xaResource = getDelegate(); try { return xaResource.prepare(xid); } catch (XAException e) { throw check(e); } }
public int prepare(Xid arg0) throws XAException { try { return getPhysicalXAResource().prepare(arg0); } catch (XAException ex) { release(); throw ex; } }
public int prepare(Xid xid) throws XAException { Profiler profiler = _profilerPoint.start(); try { return _xaResource.prepare(xid); } finally { profiler.finish(); } }
public int prepare(Xid arg0) throws XAException { try { return getPhysicalXAResource().prepare(arg0); } catch (XAException ex) { release(); throw ex; } }
public int prepare(Xid xid) throws XAException { dataSource.log.debug("prepare" + ":" + xid.getGlobalTransactionId()); int res = xarsrc.prepare(getOracleXid(xid)); if (res == XA_RDONLY) { xaDataSource.freeConnection(xid, false); txctxs.remove(xid); } return res; }
@Override public int prepare(final Xid xid) throws XAException { XAResource xaResource = getDelegate(true); if (ActiveMQXARecoveryLogger.LOGGER.isDebugEnabled()) { ActiveMQXARecoveryLogger.LOGGER.debug("prepare " + xaResource + " xid "); } try { return xaResource.prepare(xid); } catch (XAException e) { throw check(e); } }
public int prepare(Xid xid) throws XAException { print("XAResource.prepare: " + xidToString(xid)); int result = res.prepare(xid); print("prepare result = " + flagToString(result)); return result; }
@Override public int prepare(final Xid xid) throws XAException { XAResource xaResource = getDelegate(true); if (ActiveMQXARecoveryLogger.LOGGER.isDebugEnabled()) { ActiveMQXARecoveryLogger.LOGGER.debug("prepare " + xaResource + " xid "); } try { return xaResource.prepare(xid); } catch (XAException e) { throw check(e); } }
protected void prepare() { EmbeddedTransactionManager dtm = (EmbeddedTransactionManager) tm(); try { dtm.firstEnlistedResource().prepare(getXid()); } catch (Throwable e) { throw new RuntimeException(e); } }