Examples of LastMessage


Examples of com.sun.xml.ws.rx.rm.protocol.wsrm200502.SequenceElement.LastMessage

        }

        SequenceElement sequenceElement = new SequenceElement();
        sequenceElement.setId(lastAppMessage.getSequenceId());
        sequenceElement.setMessageNumber(lastAppMessage.getMessageNumber());
        sequenceElement.setLastMessage(new LastMessage());

        message.getHeaders().add(createHeader(sequenceElement));

        appendAcknowledgementHeaders(packet, data.getAcknowledgementData());
View Full Code Here

Examples of ee.widespace.forum.LastMessage

  try {
    ResultSet rset = stmt.executeQuery();
    try {
      while (rset.next()) {
      MainQuery   mq = new MainQuery();
      LastMessage lm = new LastMessage();
     
      lm = getLastMessageAuthor(rset.getInt(1) );
     
      mq.numbersOfMessages   = getMessageCount( rset.getInt(1) );
      mq.name                = rset.getString(2);
View Full Code Here

Examples of ee.widespace.forum.LastMessage

* Creation date: (6/13/2001 14:58:55 PM)
* @param forum ee.widespace.forum.Forum
*/
public  LastMessage getLastMessageAuthor( int forumID) throws SQLException {
 
  LastMessage lm = new LastMessage();
  String st = getLastMessageDate( forumID );
 
  if ( st == null ){
    lm.authorOfLastMessage = "not avaible";
    lm.dateOfLastMessage = "not avaible";
View Full Code Here

Examples of org.apache.sandesha2.wsrm.LastMessage

      rmMsgCtx.setMessageType(Sandesha2Constants.MessageTypes.TERMINATE_SEQ_RESPONSE);
      sequenceID = terminateSequenceResponse.getIdentifier().getIdentifier();
    } else if (rmMsgCtx.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE) != null) {
     
      Sequence seq = (Sequence) rmMsgCtx.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
      LastMessage lastMessage = seq.getLastMessage();
      SOAPEnvelope envelope = rmMsgCtx.getSOAPEnvelope();
     
      if (lastMessage!=null && envelope.getBody().getFirstOMChild()==null) {
        //the message is an empty body last message
        rmMsgCtx.setMessageType(Sandesha2Constants.MessageTypes.LAST_MESSAGE);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.LastMessage

        msgNumber.setMessageNumber(senderBean.getMessageNumber());
        sequence.setMessageNumber(msgNumber);

        if(senderBean.isLastMessage() &&
            SpecSpecificConstants.isLastMessageIndicatorRequired(rmVersion)) {
          sequence.setLastMessage(new LastMessage(namespace));
        }
       
        // We just create the id here, we will add the value in later
        id = new Identifier(namespace);
        sequence.setIdentifier(id);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.LastMessage

      rmMsgCtx.setMessageType(Sandesha2Constants.MessageTypes.TERMINATE_SEQ_RESPONSE);
      sequenceID = terminateSequenceResponse.getIdentifier().getIdentifier();
    } else if (rmMsgCtx.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE) != null) {
     
      Sequence seq = (Sequence) rmMsgCtx.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
      LastMessage lastMessage = seq.getLastMessage();
      SOAPEnvelope envelope = rmMsgCtx.getSOAPEnvelope();
     
      if (lastMessage!=null && envelope.getBody().getFirstOMChild()==null) {
        //the message is an empty body last message
        rmMsgCtx.setMessageType(Sandesha2Constants.MessageTypes.LAST_MESSAGE);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.LastMessage

        throw new SandeshaException(message);
      }

      if (requestSequence.getLastMessage() != null) {
        lastMessage = true;
        sequence.setLastMessage(new LastMessage(factory,rmNamespaceValue));

      }

    } else {
      // client side

      OperationContext operationContext = msg.getOperationContext();
      if (operationContext != null) {
        Object obj = msg.getProperty(SandeshaClientConstants.LAST_MESSAGE);
        if (obj != null && "true".equals(obj)) {
          lastMessage = true;
         
          SequencePropertyBean specVersionBean = sequencePropertyMgr.retrieve(internalSequenceId,Sandesha2Constants.SequenceProperties.RM_SPEC_VERSION);
          if (specVersionBean==null)
            throw new SandeshaException ("Spec version bean is not set");
         
          String specVersion = specVersionBean.getValue();
          if (SpecSpecificConstants.isLastMessageIndicatorRequired(specVersion))
            sequence.setLastMessage(new LastMessage(factory,rmNamespaceValue));
        }
      }
    }

    AckRequested ackRequested = null;
View Full Code Here

Examples of org.apache.sandesha2.wsrm.LastMessage

    if (configCtx == null)
      throw new SandeshaException("Configuration Context is null");

    AckRequested ackRequested = (AckRequested) rmMsgCtx
        .getMessagePart(Sandesha2Constants.MessageParts.ACK_REQUEST);
    LastMessage lastMessage = (LastMessage) sequence.getLastMessage();

    //Setting the ack depending on AcksTo.
    SequencePropertyBean acksToBean = seqPropMgr.retrieve(sequenceId,
        Sandesha2Constants.SequenceProperties.ACKS_TO_EPR);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.LastMessage

      if (requestSequence == null)
        throw new SandeshaException("Request Sequence is null");

      if (requestSequence.getLastMessage() != null) {
        lastMessage = true;
        sequence.setLastMessage(new LastMessage(factory));

        //saving the last message no.
        SequencePropertyBean lastOutMsgBean = new SequencePropertyBean(
            internalSequenceId,
            Sandesha2Constants.SequenceProperties.LAST_OUT_MESSAGE,
            new Long(messageNumber));
        sequencePropertyMgr.insert(lastOutMsgBean);
      }

    } else {
      //client side

      OperationContext operationContext = msg.getOperationContext();
      if (operationContext != null) {
        Object obj = msg.getProperty(Sandesha2ClientAPI.LAST_MESSAGE);
        if (obj != null && "true".equals(obj)) {
          lastMessage = true;
          sequence.setLastMessage(new LastMessage(factory));
          //saving the last message no.
          SequencePropertyBean lastOutMsgBean = new SequencePropertyBean(
              internalSequenceId,
              Sandesha2Constants.SequenceProperties.LAST_OUT_MESSAGE,
              new Long(messageNumber));
View Full Code Here

Examples of org.apache.sandesha2.wsrm.LastMessage

        log.debug(message);
        throw new SandeshaException(message);
      }

      if (requestSequence.getLastMessage() != null) {
        sequence.setLastMessage(new LastMessage(rmNamespaceValue));
      }

    } else {
      // client side

      OperationContext operationContext = msg.getOperationContext();
      if (operationContext != null) {
        Object obj = msg.getProperty(SandeshaClientConstants.LAST_MESSAGE);
        if (obj != null && "true".equals(obj)) {

          SequencePropertyBean specVersionBean = sequencePropertyMgr.retrieve(internalSequenceId,
              Sandesha2Constants.SequenceProperties.RM_SPEC_VERSION);
          if (specVersionBean == null)
            throw new SandeshaException(SandeshaMessageHelper
                .getMessage(SandeshaMessageKeys.specVersionNotSet));

          String specVersion = specVersionBean.getValue();
          if (SpecSpecificConstants.isLastMessageIndicatorRequired(specVersion))
            sequence.setLastMessage(new LastMessage(rmNamespaceValue));
        }
      }
    }

    AckRequested ackRequested = 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.