Examples of Durable2PCParticipant


Examples of com.arjuna.wst.Durable2PCParticipant

                    // hmm, need to create wrappers here as the subTx is in WSCF which only knows
                    // about WSAS and WS-C and the participant is in WS-T
                    String vtppid = subTx.getVolatile2PhaseId();
                    String dtppid = subTx.getDurable2PhaseId();
                    Volatile2PCParticipant vtpp = new SubordinateVolatile2PCStub(subTx);
                    Durable2PCParticipant dtpp = new SubordinateDurable2PCStub(subTx);
                    final String messageId = MessageId.getMessageId() ;
                    W3CEndpointReference participant;
                    W3CEndpointReference coordinator;
                    participant= getParticipant(vtppid, isSecure);
                    coordinator = RegistrationCoordinator.register(currentContext, messageId, participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC) ;
View Full Code Here

Examples of com.arjuna.wst.Durable2PCParticipant

                    // hmm, need to create wrappers here as the subTx is in WSCF which only knows
                    // about WSAS and WS-C and the participant is in WS-T
                    String vtppid = subTx.getVolatile2PhaseId();
                    String dtppid = subTx.getDurable2PhaseId();
                    Volatile2PCParticipant vtpp = new SubordinateVolatile2PCStub(subTx);
                    Durable2PCParticipant dtpp = new SubordinateDurable2PCStub(subTx);
                    final String messageId = MessageId.getMessageId() ;
                    EndpointReferenceType participant;
                    EndpointReferenceType coordinator;
                    participant= getParticipant(vtppid);
                    coordinator = RegistrationCoordinator.register(currentContext, messageId, participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC) ;
View Full Code Here

Examples of com.arjuna.wst.Durable2PCParticipant

    public Durable2PCParticipant deserialize(String id, ObjectInputStream stream) throws Exception {
        if (id.startsWith("org.jboss.jbossts.xts-demorpc:restaurantAT") ||
                id.startsWith("org.jboss.jbossts.xts-demorpc:theatreAT") ||
                id.startsWith("org.jboss.jbossts.xts-demorpc:taxiAT")) {
            System.out.println("xts-demorpc : attempting to deserialize WS-AT participant " + id);
            Durable2PCParticipant participant = (Durable2PCParticipant)stream.readObject();
            System.out.println("xts-demorpc : deserialized WS-AT participant " + id);
            return participant;
        }

        return null;
View Full Code Here

Examples of com.arjuna.wst.Durable2PCParticipant

    public Durable2PCParticipant deserialize(String id, ObjectInputStream stream) throws Exception {
        if (id.startsWith("org.jboss.jbossts.xts-demo:restaurantAT") ||
                id.startsWith("org.jboss.jbossts.xts-demo:theatreAT") ||
                id.startsWith("org.jboss.jbossts.xts-demo:taxiAT")) {
            System.out.println("xts-demo : attempting to deserialize WS-AT participant " + id);
            Durable2PCParticipant participant = (Durable2PCParticipant)stream.readObject();
            System.out.println("xts-demo : deserialized WS-AT participant " + id);
            return participant;
        }

        return null;
View Full Code Here

Examples of com.arjuna.wst.Durable2PCParticipant

        if (id.startsWith(SubordinateCoordinator.PARTICIPANT_PREFIX)) {
            InputObjectState ios = new InputObjectState();
            ios.setBuffer(recoveryState);
            String className = ios.unpackString();
            Class participantClass =  this.getClass().getClassLoader().loadClass(className);
            Durable2PCParticipant participant = (Durable2PCParticipant)participantClass.newInstance();
            ((PersistableParticipant)participant).restoreState(ios);
            return participant;
        }
        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.