Package org.apache.jackrabbit.data.core

Examples of org.apache.jackrabbit.data.core.TransactionContext.prepare()


    public int prepare(Xid xid) throws XAException {
        TransactionContext tx = txGlobal.get(xid);
        if (tx == null) {
            throw new XAException(XAException.XAER_NOTA);
        }
        tx.prepare();
        return XA_OK;
    }

    /**
     * {@inheritDoc}
 
View Full Code Here


        if (tx == null) {
            throw new XAException(XAException.XAER_NOTA);
        }
        try {
          if (onePhase) {
            tx.prepare();
          }
          tx.commit();
        } finally {
          txGlobal.remove(xid);
        }
View Full Code Here

    public int prepare(Xid xid) throws XAException {
        TransactionContext tx = txGlobal.get(xid);
        if (tx == null) {
            throw new XAException(XAException.XAER_NOTA);
        }
        tx.prepare();
        return XA_OK;
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

        if (tx == null) {
            throw new XAException(XAException.XAER_NOTA);
        }
        try {
          if (onePhase) {
            tx.prepare();
          }
          tx.commit();
        } finally {
          txGlobal.remove(xid);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.