Package org.apache.sandesha2.storage.beanmanagers

Examples of org.apache.sandesha2.storage.beanmanagers.SequencePropertyBeanMgr.retrieve()


            transportIn = org.apache.axis2.Constants.TRANSPORT_HTTP;
          ListenerManager.makeSureStarted(transportIn, context);
        } else if (acksTo == null && serverSide) {
          String incomingSequencId = SandeshaUtil
              .getServerSideIncomingSeqIdFromInternalSeqId(internalSequenceId);
          SequencePropertyBean bean = seqPropMgr.retrieve(
              incomingSequencId,
              Sandesha2Constants.SequenceProperties.REPLY_TO_EPR);
          if (bean != null) {
            EndpointReference acksToEPR = (EndpointReference) bean
                .getValue();
View Full Code Here


        .getSequencePropretyBeanMgr();

    SenderBeanMgr retransmitterMgr = storageManager
        .getRetransmitterBeanMgr();

    SequencePropertyBean toBean = sequencePropertyMgr.retrieve(
        internalSequenceId, Sandesha2Constants.SequenceProperties.TO_EPR);
    SequencePropertyBean replyToBean = sequencePropertyMgr.retrieve(
        internalSequenceId, Sandesha2Constants.SequenceProperties.REPLY_TO_EPR);

    //again - looks weird in the client side - but consistent
View Full Code Here

    SenderBeanMgr retransmitterMgr = storageManager
        .getRetransmitterBeanMgr();

    SequencePropertyBean toBean = sequencePropertyMgr.retrieve(
        internalSequenceId, Sandesha2Constants.SequenceProperties.TO_EPR);
    SequencePropertyBean replyToBean = sequencePropertyMgr.retrieve(
        internalSequenceId, Sandesha2Constants.SequenceProperties.REPLY_TO_EPR);

    //again - looks weird in the client side - but consistent
    SequencePropertyBean outSequenceBean = sequencePropertyMgr.retrieve(
        internalSequenceId,
View Full Code Here

        internalSequenceId, Sandesha2Constants.SequenceProperties.TO_EPR);
    SequencePropertyBean replyToBean = sequencePropertyMgr.retrieve(
        internalSequenceId, Sandesha2Constants.SequenceProperties.REPLY_TO_EPR);

    //again - looks weird in the client side - but consistent
    SequencePropertyBean outSequenceBean = sequencePropertyMgr.retrieve(
        internalSequenceId,
        Sandesha2Constants.SequenceProperties.OUT_SEQUENCE_ID);

    if (toBean == null)
      throw new SandeshaException("To is null");
View Full Code Here

    StorageManager storageManager = SandeshaUtil
        .getSandeshaStorageManager(context);

    SequencePropertyBeanMgr seqPropMgr = storageManager
        .getSequencePropretyBeanMgr();
    SequencePropertyBean nextMsgNoBean = seqPropMgr.retrieve(
        internalSequenceId,
        Sandesha2Constants.SequenceProperties.NEXT_MESSAGE_NUMBER);
    long nextMsgNo = 1;
    boolean update = false;
    if (nextMsgNoBean != null) {
View Full Code Here

      SequenceManager.updateLastActivatedTime(newSequenceId, storageManager);

      AxisEngine engine = new AxisEngine(context);
      engine.send(outMessage);

      SequencePropertyBean toBean = seqPropMgr.retrieve(newSequenceId,
          Sandesha2Constants.SequenceProperties.TO_EPR);
      if (toBean == null) {
        String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.toEPRNotValid, null);
        log.debug(message);
        throw new SandeshaException(message);
View Full Code Here

            .getSequencePropertyBeanMgr();

        transaction = storageManager.getTransaction();

        // Getting the incomingSequenceIdList
        SequencePropertyBean allSequencesBean = sequencePropMgr
            .retrieve(
                Sandesha2Constants.SequenceProperties.ALL_SEQUENCES,
                Sandesha2Constants.SequenceProperties.INCOMING_SEQUENCE_LIST);

        if (allSequencesBean == null) {
View Full Code Here

    ConfigurationContext context = terminateSeqMsg.getConfigurationContext();
    StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(context,context.getAxisConfiguration());
    SequencePropertyBeanMgr sequencePropertyBeanMgr = storageManager.getSequencePropertyBeanMgr();
   
    // Check that the sender of this TerminateSequence holds the correct token
    SequencePropertyBean tokenBean = sequencePropertyBeanMgr.retrieve(sequencePropertyKey, Sandesha2Constants.SequenceProperties.SECURITY_TOKEN);
    if(tokenBean != null) {
      SecurityManager secManager = SandeshaUtil.getSecurityManager(context);
      OMElement body = terminateSeqRMMsg.getSOAPEnvelope().getBody();
      SecurityToken token = secManager.recoverSecurityToken(tokenBean.getValue());
      secManager.checkProofOfPossession(token, body, terminateSeqRMMsg.getMessageContext());
View Full Code Here

     
      String propertyKey = SandeshaUtil.getSequencePropertyKey(rmMsgContext);

      if (propertyKey != null && msgNo > 0) {
        SequencePropertyBeanMgr seqPropMgr = storageManager.getSequencePropertyBeanMgr();
        SequencePropertyBean receivedMsgsBean = seqPropMgr.retrieve(propertyKey,
            Sandesha2Constants.SequenceProperties.SERVER_COMPLETED_MESSAGES);
        if (receivedMsgsBean != null) {
          String receivedMsgStr = receivedMsgsBean.getValue();
          ArrayList msgNoArrList = SandeshaUtil.getSplittedMsgNoArraylist(receivedMsgStr);
View Full Code Here

      if (sequence != null) {
        sequenceId = sequence.getIdentifier().getIdentifier();
      }

      SequencePropertyBeanMgr seqPropMgr = storageManager.getSequencePropertyBeanMgr();
      SequencePropertyBean receivedMsgsBean = seqPropMgr.retrieve(sequenceId,
          Sandesha2Constants.SequenceProperties.SERVER_COMPLETED_MESSAGES);
      String receivedMsgStr = receivedMsgsBean.getValue();

      ApplicationMsgProcessor ackProcessor = new ApplicationMsgProcessor();
      // Even though the duplicate message is dropped, hv to send the ack
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.