String contextName = context.getName();
if (!contextName.startsWith("/"))
contextName = "/" + contextName;
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);
}