Examples of storeMessageContext()


Examples of org.apache.sandesha2.storage.StorageManager.storeMessageContext()

        timeToSend = oldAckBean.getTimeToSend();    //If there is an old ack. This ack will be sent in the old timeToSend.
        retransmitterBeanMgr.delete(oldAckBean.getMessageID());
      }
     
      ackBean.setTimeToSend(timeToSend);
      storageManager.storeMessageContext(key,ackMsgCtx);
     
      //inserting the new ack.
      retransmitterBeanMgr.insert(ackBean);
      asyncAckTransaction.commit();
View Full Code Here

Examples of org.apache.sandesha2.storage.StorageManager.storeMessageContext()

      // Whatever the MEP, we stop processing here and the invoker will do the real work. As we
      // are taking responsibility for the message we need to return SUSPEND
      result = InvocationResponse.SUSPEND;
           
      if (wasAdded) {
        storageManager.storeMessageContext(key, msgCtx);
        // We can invoke the message immediately, if this is the next message to invoke,
        // and we don't have a user transaction in play.
        if(bean.getNextMsgNoToProcess() == msgNo && !storageManager.hasUserTransaction(msgCtx)) {
          String workId = sequenceId;
          ConfigurationContext context = msgCtx.getConfigurationContext();
View Full Code Here

Examples of org.apache.sandesha2.storage.StorageManager.storeMessageContext()

    //setting the reference msg store key.
    if (rmsBean!=null && rmsBean.getReferenceMessageStoreKey()==null) {
      //setting this application message as the reference, if it hsnt already been set.
     
      String referenceMsgKey = SandeshaUtil.getUUID();
      storageManager.storeMessageContext(referenceMsgKey, msgContext);
      rmsBean.setReferenceMessageStoreKey(referenceMsgKey);
    }
   
    String outSequenceID = null;
View Full Code Here

Examples of org.apache.sandesha2.storage.StorageManager.storeMessageContext()

       
        String referenceMsgStoreKey = rmsBean.getReferenceMessageStoreKey();
        MessageContext referenceMsg = storageManager.retrieveMessageContext(referenceMsgStoreKey, configCtx);
       
        String newMessageStoreKey = SandeshaUtil.getUUID();
        storageManager.storeMessageContext(newMessageStoreKey,referenceMsg);
       
        rMDBean.setReferenceMessageKey(newMessageStoreKey);

        // If this is an offered sequence that needs polling then we need to setup the
        // rmdBean for polling too, so that it still gets serviced after the outbound
View Full Code Here

Examples of org.apache.sandesha2.storage.StorageManager.storeMessageContext()

    if(manager.requiresMessageSerialization()) {
      msgContext.setProperty(Sandesha2Constants.QUALIFIED_FOR_SENDING, Sandesha2Constants.VALUE_TRUE);

      StorageManager store = getSandeshaStorageManager(configurationContext, configurationContext.getAxisConfiguration());
      store.storeMessageContext(storageKey, msgContext);
     
    } else {
      // message will be stored in the Sandesha2TransportSender
      msgContext.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY, storageKey);
 
View Full Code Here

Examples of org.apache.sandesha2.storage.StorageManager.storeMessageContext()

   
    StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configurationContext,axisConfiguration);
   
    msgContext.setProperty(Sandesha2Constants.QUALIFIED_FOR_SENDING,Sandesha2Constants.VALUE_TRUE);
   
    storageManager.storeMessageContext(key,msgContext);

    if (log.isDebugEnabled())
      log.debug("Exit: Sandesha2TransportSender::invoke");
    return InvocationResponse.CONTINUE;
  }
View Full Code Here

Examples of org.apache.sandesha2.storage.StorageManager.storeMessageContext()

    String key = SandeshaUtil.getUUID();

    SenderBean terminateBean = new SenderBean();
    terminateBean.setMessageContextRefKey(key);

    storageManager.storeMessageContext(key, msgContext);

    // Set a retransmitter lastSentTime so that terminate will be send with
    // some delay.
    // Otherwise this get send before return of the current request (ack).
    // TODO: refine the terminate delay.
View Full Code Here

Examples of org.apache.sandesha2.storage.StorageManager.storeMessageContext()

      SequencePropertyBean highestMsgKeyBean = new SequencePropertyBean(propertyKey,
          Sandesha2Constants.SequenceProperties.HIGHEST_IN_MSG_KEY, highetsInMsgKey);

      // storing the new message as the highest in message.
      storageManager.removeMessageContext(highetsInMsgKey);
      storageManager.storeMessageContext(highetsInMsgKey, msgCtx);

      if (highetsInMsgNoStr != null) {
        seqPropMgr.update(highestMsgNoBean);
        seqPropMgr.update(highestMsgKeyBean);
      } else {
View Full Code Here

Examples of org.apache.sandesha2.storage.StorageManager.storeMessageContext()

        seqPropMgr.update(incomingSequenceListBean);
      }

      // saving the message.
      try {
        storageManager.storeMessageContext(key, rmMsgCtx.getMessageContext());
        invokerBeanMgr.insert(new InvokerBean(key, msgNo, sequenceId));

        // This will avoid performing application processing more
        // than
        // once.
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.