updateParameter(moduleResourcePath, "db.driver", parameters.getDriverName(), sandeshaModule);
updateParameter(moduleResourcePath, "db.user", parameters.getUserName(), sandeshaModule);
updateParameter(moduleResourcePath, "db.password", parameters.getPassword() , sandeshaModule);
// getting the policy bean to update
SandeshaPolicyBean sandeshaPolicyBean
= (SandeshaPolicyBean) axisConfiguration.getParameter(Sandesha2Constants.SANDESHA_PROPERTY_BEAN).getValue();
sandeshaPolicyBean.setInactiveTimeoutInterval(
parameters.getInactivityTimeoutInterval(), parameters.getInactivityTimeoutMeasure());
sandeshaPolicyBean.setSequenceRemovalTimeoutInterval(
parameters.getSequenceRemovalTimeoutInterval(), parameters.getSequenceRemovalTimeoutMeasure());
sandeshaPolicyBean.setSequenceRemovalTimeoutMeasure(parameters.getSequenceRemovalTimeoutMeasure());
sandeshaPolicyBean.setAcknowledgementInterval(parameters.getAcknowledgementInterval());
sandeshaPolicyBean.setRetransmissionInterval(parameters.getRetransmissionInterval());
sandeshaPolicyBean.setExponentialBackoff(parameters.isExponentialBackoff());
sandeshaPolicyBean.setMaximumRetransmissionCount(parameters.getMaximumRetransmissionCount());
// if it has set the storage as permenent the we need to initiate storage and put to the
// configuration context.
if ((parameters.getStorageManager() != null)
&& (parameters.getStorageManager().equals(Sandesha2Constants.PERMANENT_STORAGE_MANAGER))){
sandeshaPolicyBean.setPermanentStorageManagerClass(PersistentStorageManager.class.getName());
// creating the persistace storage.
PersistentStorageManager persistentStorageManager = new PersistentStorageManager(configurationContext);
persistentStorageManager.initStorage(sandeshaModule);
Parameter permenentStorage = axisConfiguration.getParameter(Sandesha2Constants.PERMANENT_STORAGE_MANAGER);