String msg = _strMgr.getString("ClbNameDoesNotExist");
throw new MBeanException(new ConfigException(msg));
}
}
ConvergedLbConfig lbCfg = getConvergedLbConfig(clbCfgName);
ConvergedLbPolicy clbLbPolicy = lbCfg.getConvergedLbPolicy();
String dcrFileName = clbLbPolicy.getDcrFile();
// Before unsetting dcr file delete the physical file
String iRoot = System.getProperty(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY);
String dcrFilePath = iRoot + File.separator + PEFileLayout.CONFIG_DIR
+ File.separator + cfgName + File.separator + dcrFileName;
File dcrFile = new File(dcrFilePath);
if (dcrFile.exists())
dcrFile.delete();
//setting dcr file to empty string
clbLbPolicy.setDcrFile("");
} catch (ConfigException ce) {
throw new MBeanException(ce);
}
}