Package org.apache.sandesha.ws.rm

Examples of org.apache.sandesha.ws.rm.CreateSequenceResponse


        this.storageManager = storageManger;
    }

    public boolean processMessage(RMMessageContext rmMessageContext) throws AxisFault {

        CreateSequenceResponse createSeqRes = rmMessageContext.getRMHeaders()
                .getCreateSequenceResponse();

        RelatesTo relatesTo = (RelatesTo) rmMessageContext.getAddressingHeaders().getRelatesTo()
                .get(0);
        String sequenceID = createSeqRes.getIdentifier().toString();
        //Approve the sequences. Now we can start sending the messages using that sequence.

        storageManager.setApprovedOutSequence(relatesTo.getURI().toString(), sequenceID);
        String offerID = storageManager.getOffer(relatesTo.getURI().toString());

        if (createSeqRes.getAccept() != null) {
            storageManager.addRequestedSequence(offerID);
            storageManager.setAcksTo(offerID,
                    createSeqRes.getAccept().getAcksTo().getAddress().toString());
        }
        //No response to this message.
        return false;
    }
View Full Code Here

TOP

Related Classes of org.apache.sandesha.ws.rm.CreateSequenceResponse

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.