Examples of RMPolicyBean


Examples of org.apache.sandesha2.policy.RMPolicyBean

public class RMPolicyManager {

  public static RMPolicyBean getPolicyBean(RMMsgContext msgContext) {
    //TODO extract policies from the msgCtx.
   
    RMPolicyBean policyBean = PropertyManager.getInstance().getRMPolicyBean();
    return policyBean;
  }
View Full Code Here

Examples of org.apache.sandesha2.policy.RMPolicyBean

      //the internalSequenceId value of the retransmitter Table for the
      // messages related to an incoming
      //sequence is the actual sequence ID
      ackBean.setInternalSequenceId(sequenceId);

      RMPolicyBean policyBean = (RMPolicyBean) rmMsgCtx
          .getProperty(Sandesha2Constants.WSP.RM_POLICY_BEAN);
      long ackInterval = PropertyManager.getInstance().getAcknowledgementInterval();
      if (policyBean != null) {
        ackInterval = policyBean.getAcknowledgementInaterval();
      }

      //Ack will be sent as stand alone, only after the retransmitter
      // interval.
      long timeToSend = System.currentTimeMillis() + ackInterval;
View Full Code Here

Examples of org.apache.sandesha2.policy.RMPolicyBean

        .getStoredMessageContext(storedKey);

    if (messageContext.getConfigurationContext() == null)
      return retransmitterBean;

    RMPolicyBean policyBean = (RMPolicyBean) messageContext
        .getProperty(Sandesha2Constants.WSP.RM_POLICY_BEAN);
    if (policyBean == null) {
      //loading default policies.
      policyBean = PropertyManager.getInstance().getRMPolicyBean();
    }
View Full Code Here

Examples of org.apache.sandesha2.policy.RMPolicyBean

    //Strating the sender.
    SandeshaUtil.startSenderIfStopped(context);

    //Adding the policy bean
    RMPolicyBean policyBean = RMPolicyManager.getPolicyBean(rmMsgCtx);
    rmMsgCtx.setProperty(Sandesha2Constants.WSP.RM_POLICY_BEAN, policyBean);

    StorageManager storageManager = SandeshaUtil
        .getSandeshaStorageManager(context);
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.