Package org.apache.sandesha2.storage.beanmanagers

Examples of org.apache.sandesha2.storage.beanmanagers.CreateSeqBeanMgr.findUnique()


  throws SandeshaException {
    RMSBeanMgr rmsBeanMgr = storageManager.getRMSBeanMgr();
    RMSBean bean = new RMSBean();
    bean.setInternalSequenceID(internalSequenceID);
   
    bean = rmsBeanMgr.findUnique(bean);

    return bean;
  }
 
  public static final RMSBean getRMSBeanFromSequenceId(StorageManager storageManager, String sequenceID)
View Full Code Here


  throws SandeshaException {
    RMSBeanMgr rmsBeanMgr = storageManager.getRMSBeanMgr();
    RMSBean bean = new RMSBean();
    bean.setSequenceID(sequenceID);
   
    bean = rmsBeanMgr.findUnique(bean);

    return bean;
  }

  public static RMDBean getRMDBeanFromSequenceId(StorageManager storageManager, String sequenceID)
View Full Code Here

    String outBoundInternalSequence = rmdBean.getOutboundInternalSequence();
   
    RMSBeanMgr rmsBeanMgr = storageManager.getRMSBeanMgr();
    RMSBean findBean = new RMSBean ();
    findBean.setInternalSequenceID(outBoundInternalSequence);
    RMSBean rmsBean = rmsBeanMgr.findUnique (findBean);
   
    if (rmsBean!=null && rmsBean.getLastOutMessage()<=0) {
      //there is a RMS sequence without a LastMsg entry
     
      MessageContext msgContext = rmMsgCtx.getMessageContext();
View Full Code Here

        RMSBeanMgr mgr = storageManager.getRMSBeanMgr();

        RMSBean finder = new RMSBean();
        finder.setSequenceID(oldRMSBean.getSequenceID());
        RMSBean bean = mgr.findUnique(finder);

        oldRMSBean.setReallocated(Sandesha2Constants.WSRM_COMMON.REALLOCATION_FAILED);
        storageManager.getRMSBeanMgr().update(oldRMSBean);
        throw new SandeshaException(SandeshaMessageKeys.reallocationForSyncRequestReplyNotSupported);
      } else {
View Full Code Here

     
        //Find RMSBean
        RMSBeanMgr rmsBeanMgr = storageManager.getRMSBeanMgr();
        RMSBean tempRMSBean = new RMSBean();
        tempRMSBean.setInternalSequenceID(rmsBean.getInternalSequenceID());
        rmsBean = rmsBeanMgr.findUnique(tempRMSBean);
     
        // If the RMSBean has been terminated this means that we may
        // well have encountered a problem sending this message
        if (rmsBean == null || rmsBean.isTerminated()){
         
View Full Code Here

    RMSBeanMgr rmsBeanManager = storageManager.getRMSBeanMgr();
    RMSBean findRMS = new RMSBean();
    findRMS.setInternalSequenceID(entry.getSequenceId());
    findRMS.setPollingMode(true);
    findRMS.setTerminated(false);
    RMSBean beanToPoll = rmsBeanManager.findUnique(findRMS);
   
    if(beanToPoll == null) {
      // This sequence must have been terminated, or deleted
      stopThreadForSequence(entry.getSequenceId(), true);
    } else {
View Full Code Here

      if(outboundSequence != null) {
        RMSBean findRMS = new RMSBean();
        findRMS.setInternalSequenceID(outboundSequence);
        findRMS.setTerminated(false);
        RMSBeanMgr mgr = storageManager.getRMSBeanMgr();
        RMSBean outbound = mgr.findUnique(findRMS);
        if(outbound != null && outbound.getExpectedReplies() == 0) {
          doPoll = false;
        }
      }
      if(force || doPoll)
View Full Code Here

      sequenceReport.setInternalSequenceID(internalSequenceID);

      RMSBean createSeqFindBean = new RMSBean();
      createSeqFindBean.setInternalSequenceID(internalSequenceID);

      RMSBean rMSBean = createSeqMgr.findUnique(createSeqFindBean);

      // if data not is available sequence has to be terminated or
      // timedOut.
      if (rMSBean != null && rMSBean.isTerminated()) {
View Full Code Here

        RMSBeanMgr mgr = storageManager.getRMSBeanMgr();

        RMSBean finder = new RMSBean();
        finder.setSequenceID(oldRMSBean.getSequenceID());
        RMSBean bean = mgr.findUnique(finder);

        oldRMSBean.setReallocated(Sandesha2Constants.WSRM_COMMON.REALLOCATION_FAILED);
        storageManager.getRMSBeanMgr().update(oldRMSBean);
        throw new SandeshaException(SandeshaMessageKeys.reallocationForSyncRequestReplyNotSupported);
      } else {
View Full Code Here

    String outBoundInternalSequence = rmdBean.getOutboundInternalSequence();
   
    RMSBeanMgr rmsBeanMgr = storageManager.getRMSBeanMgr();
    RMSBean findBean = new RMSBean ();
    findBean.setInternalSequenceID(outBoundInternalSequence);
    RMSBean rmsBean = rmsBeanMgr.findUnique (findBean);
   
    if (rmsBean!=null && rmsBean.getLastOutMessage()<=0) {
      //there is a RMS sequence without a LastMsg entry
     
      MessageContext msgContext = rmMsgCtx.getMessageContext();
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.