Package org.apache.sandesha2.storage

Examples of org.apache.sandesha2.storage.StorageManager.removeMessageContext()


        } else {
          senderBeanMgr.delete(bean1.getMessageID());

          // removing the message from the storage.
          String messageStoredKey = bean1.getMessageContextRefKey();
          storageManager.removeMessageContext(messageStoredKey);
        }
      }

      // Commit the transaction to release the SenderBean
View Full Code Here


      // Depending on the transaction  support, the service will be invoked only once.
      // Therefore we delete the invoker bean and message now, ahead of time
      invokerBeanMgr.delete(messageContextKey);
      // removing the corresponding message context as well.
      storageManager.removeMessageContext(messageContextKey);

      try {

        boolean postFailureInvocation = false;
View Full Code Here

        String messageId = relatesTo.getValue();
        SenderBean sender = storageManager.getSenderBeanMgr().retrieve(messageId);
        if(sender != null) {
          if(log.isDebugEnabled()) log.debug("Deleting sender for sync-2-way message");
         
          storageManager.removeMessageContext(sender.getMessageContextRefKey());
         
          //this causes the request to be deleted even without an ack.
          storageManager.getSenderBeanMgr().delete(messageId);
         
          // Try and terminate the corresponding outbound sequence
View Full Code Here

        } else {
          senderBeanMgr.delete(bean1.getMessageID());

          // removing the message from the storage.
          String messageStoredKey = bean1.getMessageContextRefKey();
          storageManager.removeMessageContext(messageStoredKey);
        }
      }

      // Commit the transaction to release the SenderBean
View Full Code Here

       
      // deleting the create sequence sender bean entry.
      retransmitterMgr.delete(createSeqBean.getMessageID());
       
      // Remove the create sequence message
      storageManager.removeMessageContext(rmsBean.getCreateSequenceMsgStoreKey());
      SandeshaUtil.startWorkersForSequence(configCtx, rmsBean);
 
      // Locate and update all of the messages for this sequence, now that we know
      // the sequence id.
      SenderBean target = new SenderBean();
View Full Code Here


                if (!syncResponseNeeded) {
                  // removing the application message from the storage if there is no replay model
                  retransmitterMgr.delete(retransmitterBean.getMessageID());
                  storageManager.removeMessageContext(storageKey);
                }
              }
            }
          }//end for
        }//end for
View Full Code Here

      invokerBeanMgr.delete(messageContextKey);

      // removing the corresponding message context as well.
      MessageContext msgCtx = storageManager.retrieveMessageContext(messageContextKey, configurationContext);
      if (msgCtx != null) {
        storageManager.removeMessageContext(messageContextKey);
      }

      // updating the next msg to invoke

      String s = invokerBean.getSequenceID();
View Full Code Here

        } else {
          senderBeanMgr.delete(bean1.getMessageID());

          // removing the message from the storage.
          String messageStoredKey = bean1.getMessageContextRefKey();
          storageManager.removeMessageContext(messageStoredKey);
        }
      }

      if (successfullySent) {
        if (!msgCtx.isServerSide())
View Full Code Here

          Sandesha2Constants.SequenceProperties.HIGHEST_IN_MSG_NUMBER, str);
      SequencePropertyBean highestMsgKeyBean = new SequencePropertyBean(propertyKey,
          Sandesha2Constants.SequenceProperties.HIGHEST_IN_MSG_KEY, highetsInMsgKey);

      // 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);
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.