PersistentStorageManager persistentStorageManager = new PersistentStorageManager(configurationContext);
persistentStorageManager.initStorage(sandeshaModule);
Parameter permenentStorage = axisConfiguration.getParameter(Sandesha2Constants.PERMANENT_STORAGE_MANAGER);
if (permenentStorage != null){
axisConfiguration.removeParameter(permenentStorage);
}
// change the permenetent storage manager.
axisConfiguration.addParameter(Sandesha2Constants.PERMANENT_STORAGE_MANAGER, persistentStorageManager);