AdminService.getAdminService().
getAdminContext().getAdminConfigContext();
Config config = ServerBeansFactory.getConfigBean(adminConfigCtx);
ConfigDelete configDel = null;
ArrayList<ConfigDelete> configChangeList = event.getConfigChangeList();
ManagementRule rule = null;
String xpath = null;
Object object;
for (int i=0; i < configChangeList.size(); i++){
configDel = configChangeList.get(i);
xpath = configDel.getXPath();
if (xpath != null){
_logger.log(Level.INFO, "sgmt.reconfig_handledelxpath",xpath);
object = oldConfigContext.exactLookup(xpath);
if (object instanceof Action) {
//handle action removal - noaction
String realXPath = xpath.substring(0,xpath.lastIndexOf("/"));
rule = (ManagementRule) adminConfigCtx.exactLookup(realXPath);
String ruleName = rule.getName();
service.deleteAction(ruleName);
} else if (object instanceof ManagementRule) {
rule = (ManagementRule)object;
String ruleName = rule.getName();
service.deleteRule(ruleName);
} else {
String realXPath = xpath.substring(0,xpath.lastIndexOf("/"));
rule = (ManagementRule) adminConfigCtx.exactLookup(realXPath);
String ruleName = rule.getName();
service.deleteAction(ruleName);
}
}
}
} catch( Exception ex){