if ( ((HttpListener)object).getDefaultVirtualServer()
.equals(com.sun.enterprise.web.VirtualServer.ADMIN_VS)){
if (configChangeList.size() == 1){
throw new AdminEventListenerException("Restart required");
} else {
continue;
}
}
webContainer.updateConnector(
(HttpListener)object,
config.getHttpService(),
configContext);
} else if (object instanceof ElementProperty) {
// Property has been added or updated
parentXpath = configChange.getParentXPath();
if (parentXpath == null) {
parentXpath =
xpath.substring(0, xpath.lastIndexOf("/"));
}
httpBean = (HttpListener)
configContext.exactLookup(parentXpath);
webContainer.updateConnector(
httpBean,
config.getHttpService(),
configContext);
}
} else {
// Property has been deleted
parentXpath =
xpath.substring(0, xpath.lastIndexOf("/"));
httpBean = (HttpListener)
configContext.exactLookup(parentXpath);
webContainer.updateConnector(
httpBean,
config.getHttpService(),
configContext);
}
}
}
} catch (Exception ex) {
throw new AdminEventListenerException(ex);
}
}