Package org.apache.sandesha2.storage.beanmanagers

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


      SequencePropertyBean highestMsgNoBean = new SequencePropertyBean (sequenceId,Sandesha2Constants.SequenceProperties.HIGHEST_IN_MSG_NUMBER,str);
      SequencePropertyBean highestMsgKeyBean = new SequencePropertyBean (sequenceId,Sandesha2Constants.SequenceProperties.HIGHEST_IN_MSG_KEY,key);
     
      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);

    updataMsgStringTransaction.commit();

    Transaction invokeTransaction = storageManager.getTransaction();
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);

 
}
View Full Code Here

    lastActivatedBean.setValue(Long.toString(currentTime));
   
    if (added)
      sequencePropertyBeanMgr.insert(lastActivatedBean);
    else
      sequencePropertyBeanMgr.update(lastActivatedBean);
   
  }
 
 
  public static long getLastActivatedTime (String propertyKey, ConfigurationContext configContext) throws SandeshaException {
View Full Code Here

    noOfMsgsAckedBean.setValue(Long.toString(noOfMsgsAcked));
   
    if (added)
      seqPropMgr.insert(noOfMsgsAckedBean);
    else
      seqPropMgr.update(noOfMsgsAckedBean);
   
   
    //setting the completed_messages list. This gives all the messages of the sequence that were acked.
    SequencePropertyBean allCompletedMsgsBean = seqPropMgr.retrieve(internalSequenceId,Sandesha2Constants.SequenceProperties.CLIENT_COMPLETED_MESSAGES);
    if (allCompletedMsgsBean==null) {
View Full Code Here

    }
       
    String str = ackedMessagesList.toString();
    allCompletedMsgsBean.setValue(str);
   
    seqPropMgr.update(allCompletedMsgsBean);   
   
    //commiting transaction
    ackTransaction.commit();
   
    String lastOutMsgNoStr = SandeshaUtil.getSequenceProperty(internalSequenceId,Sandesha2Constants.SequenceProperties.LAST_OUT_MESSAGE_NO,configCtx);
View Full Code Here

      messagesStr = messagesStr + "," + Long.toString(msgNo);
    else
      messagesStr = Long.toString(msgNo);

    msgsBean.setValue(messagesStr);
    seqPropMgr.update(msgsBean);

    sendAckIfNeeded(rmMsgCtx, messagesStr);

    //  Pause the messages bean if not the right message to invoke.
    NextMsgBeanMgr mgr = storageManager.getNextMsgBeanMgr();
View Full Code Here

      SequencePropertyBean checkResponseBean = seqPropMgr.retrieve(
          requestMessageId,
          Sandesha2Constants.SequenceProperties.CHECK_RESPONSE);
      if (checkResponseBean != null) {
        checkResponseBean.setValue(msgCtx);
        seqPropMgr.update(checkResponseBean);
      }

    } catch (AxisFault e) {
      throw new SandeshaException(e.getMessage());
    }
View Full Code Here

                    + Long.toString(msgNo);
              else
                receivedMsgStr = Long.toString(msgNo);

              receivedMsgsBean.setValue(receivedMsgStr);
              seqPropMgr.update(receivedMsgsBean);

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

          .setName(Sandesha2Constants.SequenceProperties.NEXT_MESSAGE_NUMBER);
    }

    nextMsgNoBean.setValue(new Long(nextMsgNo + 1));
    if (update)
      seqPropMgr.update(nextMsgNoBean);
    else
      seqPropMgr.insert(nextMsgNoBean);

    return nextMsgNo;
  }
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.