Package org.servicemix.ws.xmlbeans.rm.SequenceAcknowledgementDocument

Examples of org.servicemix.ws.xmlbeans.rm.SequenceAcknowledgementDocument.SequenceAcknowledgement


        if( intValue!=s.lastMessageAcked+1) {
            // This implementation is really simple and just drops out of order
            // messages.
           
            SequenceAcknowledgementDocument resultDoc = SequenceAcknowledgementDocument.Factory.newInstance();
            SequenceAcknowledgement acknowledgement = resultDoc.addNewSequenceAcknowledgement();
            acknowledgement.setIdentifier(sequence.getIdentifier());
            if( s.lastMessageAcked> 0 ) {
                AcknowledgementRange range = acknowledgement.addNewAcknowledgementRange();
                range.setLower(BigInteger.ONE);
                range.setUpper(new BigInteger(""+s.lastMessageAcked));
            }
            acknowledgement.addNack(value);
            return resultDoc;
        }
       
        return null;
    }
View Full Code Here


        }
       
        sequenceStore.update(s);
       
        SequenceAcknowledgementDocument resultDoc = SequenceAcknowledgementDocument.Factory.newInstance();
        SequenceAcknowledgement acknowledgement = resultDoc.addNewSequenceAcknowledgement();
        acknowledgement.setIdentifier(sequence.getIdentifier());
        AcknowledgementRange range = acknowledgement.addNewAcknowledgementRange();
        range.setLower(BigInteger.ONE);
        range.setUpper(new BigInteger(""+s.lastMessageAcked));
       
        return resultDoc;
    }
View Full Code Here

                    "wsrm:UnknownSequence",
                    sequence.getIdentifier().xmlText());
        }
       
        SequenceAcknowledgementDocument resultDoc = SequenceAcknowledgementDocument.Factory.newInstance();
        SequenceAcknowledgement acknowledgement = resultDoc.addNewSequenceAcknowledgement();
        acknowledgement.setIdentifier(sequence.getIdentifier());
        if( s.lastMessageAcked> 0 ) {
            AcknowledgementRange range = acknowledgement.addNewAcknowledgementRange();
            range.setLower(BigInteger.ONE);
            range.setUpper(new BigInteger(""+s.lastMessageAcked));
        }
       
        return resultDoc;
View Full Code Here

TOP

Related Classes of org.servicemix.ws.xmlbeans.rm.SequenceAcknowledgementDocument.SequenceAcknowledgement

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.