@Override public void commit(final Xid xid, final boolean b) throws XAException { delegate.commit(xid, b); }
public void commit(final Xid xid, final boolean onePhase) throws XAException { xaResource.commit(xid, onePhase); }
xar1.commit(xid, true); status = Status.STATUS_COMMITTED; if (VERBOSE)
try { if (preparedResources.contains(entry.getKey())) { entry.getKey().commit(entry.getValue(), false);
/** * {@inheritDoc} */ public void commit(Xid xid, boolean onePhase) throws XAException { xaResource.commit(xid, onePhase); }
/** * {@inheritDoc} */ public void commit(Xid xid, boolean onePhase) throws XAException { if (pad) xid = convertXid(xid); xaResource.commit(xid, onePhase); }
private void commitResource(XAResourceHolderState resourceHolder, boolean onePhase) throws XAException { try { if (log.isDebugEnabled()) { log.debug("committing resource " + resourceHolder + (onePhase ? " (with one-phase optimization)" : "")); } resourceHolder.getXAResource().commit(resourceHolder.getXid(), onePhase); committedResources.add(resourceHolder); if (log.isDebugEnabled()) { log.debug("committed resource " + resourceHolder); } } catch (XAException ex) { handleXAException(resourceHolder, ex, onePhase); } }
private void commitResource(XAResourceHolderState resourceHolder, boolean onePhase) throws XAException { try { if (log.isDebugEnabled()) log.debug("committing resource " + resourceHolder + (onePhase ? " (with one-phase optimization)" : "")); resourceHolder.getXAResource().commit(resourceHolder.getXid(), onePhase); committedResources.add(resourceHolder); if (log.isDebugEnabled()) log.debug("committed resource " + resourceHolder); } catch (XAException ex) { handleXAException(resourceHolder, ex, onePhase); } }
public void commit(Xid arg0, boolean arg1) throws XAException { try { getPhysicalXAResource().commit(arg0, arg1); } catch (XAException ex) { release(); throw ex; } } }
@Override public void commit(Xid xid, boolean onePhase) throws XAException { try { xaresource.commit(xid, onePhase); } catch (XAException e) { logger.error("XA commit error on " + systemToString(xid), e); throw e; } }
public void commit(Xid arg0, boolean arg1) throws XAException { try { getPhysicalXAResource().commit(arg0, arg1); } catch (XAException ex) { release(); throw ex; } } }
public void dumpAndCommitMessage(FileSystemStateChangeEvent event, XAResource xar) throws IOException, XAException { synchronized (this) { ensureDeadLetterCapacity(); byte[] content = event.toString().getBytes(TransactionLogEntry.UTF8Charset); deadLetterChannel.write(ByteBuffer.wrap(content)); } xar.commit(TransactionInformation.getXidInstanceForLocalTransaction(xaFileSystem.getNextLocalTransactionId()), true); }
public void run() { try { for (Iterator it = xaResources.keySet().iterator(); it.hasNext(); ) { XAResource resource = (XAResource) it.next(); XidImpl xid = (XidImpl) xaResources.get(resource); resource.commit(xid, false); } } catch (Exception e) { throw new RuntimeException(e.getMessage()); } } };
/** * {@inheritDoc} */ @Override public void commit() throws ResourceException { try { resource.end(xid, XAResource.TMSUCCESS); resource.commit(xid, true); } catch (XAException e) { throw new ResourceException(e.getMessage()); } }
@Override public void commit(Xid xid, boolean b) throws XAException { // Commit only if not read only. if (prepareResult != XAResource.XA_RDONLY) xaResource.commit(xid, b); else log.tracef("Not committing {0} due to readonly.", xid); }
public void commit(Xid xid, boolean flag) throws XAException{ try{ m_xacon.getXAResource().commit(xid, flag); }catch(ResourceException e){ //a bad xa connection given... throw new XAException(sm.getString("transaction.sybase_xa_wrapper_connection_failed",e)); // throw new XAException("sybase XA resource wrapper :Could not connect : sqlexception was "+e); } } public void rollback(Xid xid) throws XAException{
@Override public void commit(final Xid xid, final boolean onePhase) throws XAException { XAResource xaResource = getDelegate(true); if (ActiveMQXARecoveryLogger.LOGGER.isDebugEnabled()) { ActiveMQXARecoveryLogger.LOGGER.debug("Commit " + xaResource + " xid " + " onePhase=" + onePhase); } try { xaResource.commit(xid, onePhase); } catch (XAException e) { throw check(e); } }
@Test(expected = NetworkReactiveAuditException.class) public void commit() throws XAException { TestTools.strict.commit(); x.commit(null, true); }
protected void commit() { EmbeddedTransactionManager dtm = (EmbeddedTransactionManager) tm(); try { dtm.firstEnlistedResource().commit(getXid(), true); } catch (Throwable e) { throw new RuntimeException(e); } }
private boolean runXaResourceCommitTx() throws HeuristicMixedException { Collection<XAResource> resources = getEnlistedResources(); for (XAResource res : resources) { try { res.commit(xid, false);//todo we only support one phase commit for now, change this!!! } catch (XAException e) { log.warn("exception while committing",e); throw new HeuristicMixedException(e.getMessage()); } } return true; }