Examples of XTSATRecoveryManager


Examples of org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager

    public void rollback() throws WrongStateException, SystemException {
        if (!isRecovered()) {
            coordinator.rollback();
        } else {
            // first check whether crashed coordinators have been recovered
            XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
            boolean isRecoveryScanStarted = recoveryManager.isSubordinateCoordinatorRecoveryStarted();
            // now look for a subordinate coordinator with the right id
            coordinator = SubordinateCoordinator.getRecoveredCoordinator(coordinatorId);
            if (coordinator == null) {
                if (!isRecoveryScanStarted) {
                    // the subtransaction may still be waiting to be resolved
View Full Code Here

Examples of org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager

            bridgeWrapper.context = null;
            bridgeWrapper.coordinator =coordinator;
            bridgeWrapper.id = identifier;
            return bridgeWrapper;
        } else {
            XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
            if (recoveryManager.isCoordinatorRecoveryStarted()) {
                throw new UnknownTransactionException();
            } else {
                return null;
            }
        }
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.