Package org.apache.slide.transaction

Examples of org.apache.slide.transaction.ExternalTransactionContext


    slideToken.setForceStoreEnlistment(true);
        if (command == COMMIT_TRANSACTION || command == ABORT_TRANSACTION) {

            String fullTxId = "<" + S_LOCK_TOKEN + lockId + ">";

            ExternalTransactionContext externalTransaction = ExternalTransactionContext.lookupContext(fullTxId);
            if (externalTransaction != null) {
                Transaction tx = externalTransaction.getTransaction();
                try {
                    token.getTransactionManager().resume(tx);
                } catch (Exception exception) {
                    sendError(WebdavStatus.SC_METHOD_FAILURE, "No such transaction");
                }
View Full Code Here


        boolean globalLockObtained = false;
        String txId = null;
        try {
            parseRequest();
           
            ExternalTransactionContext externalTransaction = null;
           
            txId = requestHeaders.getTxId();
            if (txId != null) {
                externalTransaction = ExternalTransactionContext.lookupContext(txId);
                if (externalTransaction != null) {
                    Domain.log("Using external transaction " + txId, LOG_CHANNEL, Logger.INFO);
                    slideToken.setExternalTx();
                    // pure reads must be guaranteed to be inside transaction as well
                    slideToken.setForceStoreEnlistment(true);
                    Transaction tx = externalTransaction.getTransaction();
                    token.getTransactionManager().resume(tx);
                    transactionIsStarted = true;
                }
            }
           
View Full Code Here

TOP

Related Classes of org.apache.slide.transaction.ExternalTransactionContext

Copyright © 2018 www.massapicom. 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.