Package org.apache.sandesha2.storage.beanmanagers

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


 
          allSequencesList.remove(size);
         
          // cleaning the invalid data of the all sequences.
          allSequencesBean.setValue(allSequencesList.toString());
          sequencePropMgr.update(allSequencesBean);
          continue;
        }

        long nextMsgno = rmdBean.getNextMsgNoToProcess();
        if (nextMsgno <= 0) {
View Full Code Here


              receivedMsgsBean.setValue(receivedMsgStr);

              // TODO correct the syntac into '[received msgs]'

              seqPropMgr.update(receivedMsgsBean);

              ApplicationMsgProcessor ackProcessor = new ApplicationMsgProcessor();
              ackProcessor.sendAckIfNeeded(rmMsgContext, receivedMsgStr, storageManager);
             
             
View Full Code Here

      // 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 {
        seqPropMgr.insert(highestMsgNoBean);
        seqPropMgr.insert(highestMsgKeyBean);
      }
View Full Code Here

      storageManager.removeMessageContext(highetsInMsgKey);
      storageManager.storeMessageContext(highetsInMsgKey, msgCtx);

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

        messagesStr = messagesStr + "," + Long.toString(msgNo);
      else
        messagesStr = Long.toString(msgNo);
 
      msgsBean.setValue(messagesStr);
      seqPropMgr.update(msgsBean);
    }

    // Pause the messages bean if not the right message to invoke.
    RMDBeanMgr rmdBeanMgr = storageManager.getRMDBeanMgr();
    RMDBean rmdBean = rmdBeanMgr.retrieve(sequenceId);
View Full Code Here

      if (!incomingSequenceList.contains(sequenceId)) {
        incomingSequenceList.add(sequenceId);

        // saving the property.
        incomingSequenceListBean.setValue(incomingSequenceList.toString());
        seqPropMgr.update(incomingSequenceListBean);
      }

      // saving the message.
      try {
        storageManager.storeMessageContext(key, rmMsgCtx.getMessageContext());
View Full Code Here

      ArrayList allSequenceList = SandeshaUtil.getArrayListFromString(allSequenceBean.getValue());
      allSequenceList.remove(sequenceId);

      // updating
      allSequenceBean.setValue(allSequenceList.toString());
      sequencePropertyBeanMgr.update(allSequenceBean);
    }
  }

  private static boolean isRequiredForResponseSide(String name) {
    if (name == null && name.equals(Sandesha2Constants.SequenceProperties.LAST_OUT_MESSAGE_NO))
View Full Code Here

      nextMsgNoBean.setName(Sandesha2Constants.SequenceProperties.NEXT_MESSAGE_NUMBER);
    }

    nextMsgNoBean.setValue(new Long(msgNo).toString());
    if (update)
      seqPropMgr.update(nextMsgNoBean);
    else
      seqPropMgr.insert(nextMsgNoBean);

    if (log.isDebugEnabled())
      log.debug("Exit: ApplicationMsgProcessor::setNextMsgNo");
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.