Examples of storeMessageContext()


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()

      } else {
        result = InvocationResponse.SUSPEND;
      }
      InvokerBeanMgr storageMapMgr = storageManager.getInvokerBeanMgr();

      storageManager.storeMessageContext(key, rmMsgCtx.getMessageContext());
      storageMapMgr.insert(new InvokerBean(key, msgNo, sequenceId));

      // This will avoid performing application processing more than once.
      rmMsgCtx.setProperty(Sandesha2Constants.APPLICATION_PROCESSING_DONE, "true");
View Full Code Here

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

    SandeshaPolicyBean policy = getPropertyBean(msgContext.getAxisOperation());
    if(policy.isUseMessageSerialization()) {
      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()

     
      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()

     
      String referenceMsgStoreKey = rmsBean.getReferenceMessageStoreKey();
      MessageContext referenceMsg = storageManager.retrieveMessageContext(referenceMsgStoreKey, configCtx);
     
      String newMessageStoreKey = SandeshaUtil.getUUID();
      storageManager.storeMessageContext(newMessageStoreKey,referenceMsg);
     
      rmdBean.setReferenceMessageKey(newMessageStoreKey);
     
      rmdBean.setPollingMode(pollingMode);
     
View Full Code Here

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

        senderBeanMgr.delete(oldAckBean.getMessageID());
      }

      ackBean.setTimeToSend(timeToSend);

      storageManager.storeMessageContext(key, ackMsgCtx);
      msgContext.setProperty(Sandesha2Constants.QUALIFIED_FOR_SENDING, Sandesha2Constants.VALUE_FALSE);
     
      // inserting the new ack.
      senderBeanMgr.insert(ackBean);
View Full Code Here

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

    String key = SandeshaUtil.getUUID();

    SenderBean ackRequestBean = new SenderBean();
    ackRequestBean.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()

    String key = SandeshaUtil.getUUID();

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

    storageManager.storeMessageContext(key, msgContext);

    closeBean.setTimeToSend(System.currentTimeMillis());

    closeBean.setMessageID(msgContext.getMessageID());
   
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 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
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.