Package org.apache.sandesha2.wsrm

Examples of org.apache.sandesha2.wsrm.MessagePending


    // Generate the Sequence field.
    // -------------------------------
    String rmNamespaceValue = SpecSpecificConstants.getRMNamespaceValue(Sandesha2Constants.SPEC_VERSIONS.v1_1);

    Sequence sequence = new Sequence(rmNamespaceValue);
    MessageNumber msgNumber = new MessageNumber(rmNamespaceValue);
    msgNumber.setMessageNumber(1);
    sequence.setMessageNumber(msgNumber);
    Identifier id1 = new Identifier(rmNamespaceValue);
    id1.setIndentifer(uuid);
    sequence.setIdentifier(id1);
    applicationRMMsg.setMessagePart(Sandesha2Constants.MessageParts.SEQUENCE, sequence);
View Full Code Here


  public void processMessagePendingHeaders(RMMsgContext message) throws AxisFault {
   
    if (log.isDebugEnabled())
      log.debug("Enter: MessagePendingProcessor::processMessagePendingHeaders");

    MessagePending messagePending = (MessagePending) message.getMessagePart(Sandesha2Constants.MessageParts.MESSAGE_PENDING);
    if (messagePending!=null) {
      boolean pending = messagePending.isPending();
      if (pending) {
        SequenceEntry entry = (SequenceEntry) message.getProperty(Sandesha2Constants.MessageContextProperties.MAKECONNECTION_ENTRY);
        if(entry != null) {
          ConfigurationContext context = message.getConfigurationContext();
          StorageManager storage = SandeshaUtil.getSandeshaStorageManager(context, context.getAxisConfiguration());
View Full Code Here

   
    if(log.isDebugEnabled()) log.debug("Exit: MakeConnectionProcessor::replyToPoll");
  }
 
  private static void addMessagePendingHeader (MessageContext returnMessage, String namespace) throws SandeshaException {
    MessagePending messagePending = new MessagePending(namespace);
    messagePending.setPending(true);
    messagePending.toSOAPEnvelope(returnMessage.getEnvelope());
  }
View Full Code Here

   
    if(log.isDebugEnabled()) log.debug("Exit: MakeConnectionProcessor::replyToPoll");
  }
 
  private static void addMessagePendingHeader (MessageContext returnMessage, String namespace) throws SandeshaException {
    MessagePending messagePending = new MessagePending(namespace);
    messagePending.setPending(true);
    messagePending.toSOAPEnvelope(returnMessage.getEnvelope());
  }
View Full Code Here

    return false;
  }
 
  private void addMessagePendingHeader (RMMsgContext returnMessage, boolean pending) throws SandeshaException {
    String rmNamespace = returnMessage.getRMNamespaceValue();
    MessagePending messagePending = new MessagePending (rmNamespace);
    messagePending.setPending(pending);
   
    messagePending.toSOAPEnvelope(returnMessage.getSOAPEnvelope());
   
  }
View Full Code Here

    boolean messagePaused = false;
   
    RMMsgContext rmMsgContext = MsgInitializer.initializeMessage(message);
    Sequence sequence = (Sequence) rmMsgContext.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
    MessagePending messagePending = (MessagePending) rmMsgContext.getMessagePart(Sandesha2Constants.MessageParts.MESSAGE_PENDING);
   
    if (sequence!=null) {
      String sequenceId = sequence.getIdentifier().getIdentifier();
     
      if (messagePending!=null) {
        boolean pending = messagePending.isPending();
        if (pending) {
          PollingManager pollingManager = SandeshaUtil.getPollingManager(message.getConfigurationContext());
          if (pollingManager!=null) {
            pollingManager.shedulePollingRequest(sequenceId);
          }
View Full Code Here

  public void processMessagePendingHeaders(RMMsgContext message) throws AxisFault {
   
    if (log.isDebugEnabled())
      log.debug("Enter: MessagePendingProcessor::processMessagePendingHeaders");

    MessagePending messagePending = message.getMessagePending();
    if (messagePending!=null) {
      boolean pending = messagePending.isPending();
      if (pending) {
        SequenceEntry entry = (SequenceEntry) message.getProperty(Sandesha2Constants.MessageContextProperties.MAKECONNECTION_ENTRY);
        if(entry != null) {
          ConfigurationContext context = message.getConfigurationContext();
          StorageManager storage = SandeshaUtil.getSandeshaStorageManager(context, context.getAxisConfiguration());
View Full Code Here

    if (LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled())
      log.debug("Exit: MakeConnectionProcessor::replyToPoll");
  }

  private static void addMessagePendingHeader(MessageContext returnMessage, String namespace) {
    MessagePending messagePending = new MessagePending();
    messagePending.setPending(true);
    if (returnMessage.getEnvelope().getHeader() == null) {
      int SOAPVersion = Sandesha2Constants.SOAPVersion.v1_1;
      if (!returnMessage.isSOAP11())
        SOAPVersion = Sandesha2Constants.SOAPVersion.v1_2;
      //The header might not be there because of the persistence code if it doesn't exist we need to add one
      SOAPAbstractFactory.getSOAPFactory(
          SOAPVersion).createSOAPHeader(returnMessage.getEnvelope());
    }
    messagePending.toHeader(returnMessage.getEnvelope().getHeader());
  }
View Full Code Here

          if(WSRM_COMMON.USES_SEQUENCE_STR.equals(localName)){
            usesSequenceSTR = new UsesSequenceSTR();
            usesSequenceSTR.fromHeaderBlock(element);
            isProcessed = true;
          }else if(WSRM_COMMON.MESSAGE_PENDING.equals(localName)){
            messagePending = new MessagePending();
            messagePending.fromHeaderBlock(element);
            isProcessed = true;
          }
        }
View Full Code Here

          if(WSRM_COMMON.USES_SEQUENCE_STR.equals(localName)){
            usesSequenceSTR = new UsesSequenceSTR();
            usesSequenceSTR.fromHeaderBlock(element);
            isProcessed = true;
          }else if(WSRM_COMMON.MESSAGE_PENDING.equals(localName)){
            messagePending = new MessagePending();
            messagePending.fromHeaderBlock(element);
            isProcessed = true;
          }
        }
View Full Code Here

TOP

Related Classes of org.apache.sandesha2.wsrm.MessagePending

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.