Host host = (Host) context.getParent();
for (ContextResource resource : namingResources.findResources()) {
log.info("Created " + getResourceTypeDisplayName(resource) + " with JNDI binding java:comp/env/" + resource.getName() + " on host=" + host.getName() + ", path=" + contextName);
}
for (ContextResourceLink resource : namingResources.findResourceLinks()) {
log.info("Created " + getResourceTypeDisplayName(resource) + " with JNDI binding java:comp/env/" + resource.getName() + " on host=" + host.getName() + ", path=" + contextName);
}
} else if (source instanceof Server) {
Server server = (Server) source;
NamingResources namingResources = server.getGlobalNamingResources();