Package org.apache.sandesha2.storage.beanmanagers

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


    sequenceReport.setInternalSequenceID(internalSequenceID);
   
    CreateSeqBean createSeqFindBean = new CreateSeqBean ();
    createSeqFindBean.setInternalSequenceID(internalSequenceID);
   
    CreateSeqBean createSeqBean = createSeqMgr.findUnique(createSeqFindBean);
   
    //if data not is available sequence has to be terminated or timedOut.
    if (createSeqBean==null) {
     
      //check weather this is an terminated sequence.
View Full Code Here


        StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configurationContext,configurationContext.getAxisConfiguration());
        tran = storageManager.getTransaction();

        InvokerBeanMgr mgr = storageManager.getInvokerBeanMgr();
        InvokerBean nextBean = mgr.findUnique(finder);

        if(nextBean != null) {
          if(pooledThread) {
            if(log.isDebugEnabled()) log.debug("InvokerWorker:: pooledThread");
            initializeFromBean(nextBean);
View Full Code Here

      RMDBean findBean = new RMDBean ();
      findBean.setSequenceID(inboundSequenceId);
     
      if (incomingSequenceBean==null) {
        RMDBeanMgr rmdMgr = storageManager.getRMDBeanMgr();
        incomingSequenceBean = rmdMgr.findUnique(findBean);
      }
     
      if (incomingSequenceBean!=null)
        RMMsgCreator.addAckMessage(rmMsgContext, inboundSequenceId, incomingSequenceBean);
     
View Full Code Here

  throws SandeshaException {
    RMDBeanMgr rmdBeanMgr = storageManager.getRMDBeanMgr();
    RMDBean bean = new RMDBean();
    bean.setSequenceID(sequenceID);
   
    bean = rmdBeanMgr.findUnique(bean);

    return bean;
  }

  public static String getSequenceIDFromInternalSequenceID(String internalSequenceID,
View Full Code Here

    RMDBeanMgr nextMsgMgr = storageManager.getRMDBeanMgr();
    RMDBean findBean = new RMDBean();
    findBean.setPollingMode(true);
    findBean.setTerminated(false);
    findBean.setSequenceID(entry.getSequenceId());
    RMDBean nextMsgBean = nextMsgMgr.findUnique(findBean);
   
    if(nextMsgBean == null) {
      // This sequence must have been terminated, or deleted
      stopThreadForSequence(entry.getSequenceId(), false);
    } else {
View Full Code Here

        //If this is the RMD of the sequence
        RMDBeanMgr rmdBeanMgr = storageManager.getRMDBeanMgr();
        RMDBean rmdFindBean = new RMDBean();
        rmdFindBean.setSequenceID(sequenceID);

        RMDBean rmdBean = rmdBeanMgr.findUnique(rmdFindBean);
        if (rmdBean != null) {

          String serviceName = rmdBean.getServiceName();
          if (serviceName != null) {
            service = configurationContext.getAxisConfiguration()
View Full Code Here

    RMDBeanMgr nextMsgMgr = storageManager.getRMDBeanMgr();
    RMDBean findBean = new RMDBean();
    findBean.setPollingMode(true);
    findBean.setTerminated(false);
    findBean.setSequenceID(entry.getSequenceId());
    RMDBean nextMsgBean = nextMsgMgr.findUnique(findBean);
   
    if(nextMsgBean == null) {
      // This sequence must have been terminated, or deleted
      stopThreadForSequence(entry.getSequenceId(), false);
    } else {
View Full Code Here

  throws SandeshaException {
    RMDBeanMgr rmdBeanMgr = storageManager.getRMDBeanMgr();
    RMDBean bean = new RMDBean();
    bean.setSequenceID(sequenceID);
   
    bean = rmdBeanMgr.findUnique(bean);

    return bean;
  }

  public static String getSequenceIDFromInternalSequenceID(String internalSequenceID,
View Full Code Here

    RMDBeanMgr nextMsgMgr = storageManager.getRMDBeanMgr();
    RMDBean findBean = new RMDBean();
    findBean.setPollingMode(true);
    findBean.setTerminated(false);
    findBean.setSequenceID(entry.getSequenceId());
    RMDBean nextMsgBean = nextMsgMgr.findUnique(findBean);
   
    if(nextMsgBean == null) {
      // This sequence must have been terminated, or deleted
      stopThreadForSequence(entry.getSequenceId(), false);
    } else {
View Full Code Here

        } else {
          RMDBean findBean = new RMDBean ();
          findBean.setPollingMode(true);
          findBean.setSequenceID(sequenceId);
         
          rmdBean = rmdBeanMgr.findUnique(findBean);
        }
       
        //If not valid entry is found, try again later.
        if (rmdBean==null)
          continue;
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.