Examples of findResourceLinks()


Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

        webApp = webModule.getWebApp();
        for (ContextResource resource : naming.findResources()) {
            String name = resource.getName();
            removeRef(webApp, name);
        }
        for (ContextResourceLink resourceLink : naming.findResourceLinks()) {
            String name = resourceLink.getName();
            removeRef(webApp, name);
        }

        // remove all env entries from the web xml that are not overridable
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

            // Store nested <ResourceEnvRef> elements
            ContextResourceEnvRef[] resEnv = resources.findResourceEnvRefs();
            storeElementArray(aWriter, indent, resEnv);

            // Store nested <ResourceLink> elements
            ContextResourceLink[] resourceLinks = resources.findResourceLinks();
            storeElementArray(aWriter, indent, resourceLinks);
        }
    }
}
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

        // remove all jndi entries where there is a configured Tomcat resource or resource-link
        for (final ContextResource resource : naming.findResources()) {
            final String name = resource.getName();
            removeRef(webApp, name);
        }
        for (final ContextResourceLink resourceLink : naming.findResourceLinks()) {
            final String name = resourceLink.getName();
            removeRef(webApp, name);
        }

        // remove all env entries from the web xml that are not overridable
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

            // Store nested <ResourceEnvRef> elements
            ContextResourceEnvRef[] resEnv = resources.findResourceEnvRefs();
            storeElementArray(aWriter, indent, resEnv);

            // Store nested <ResourceLink> elements
            ContextResourceLink[] resourceLinks = resources.findResourceLinks();
            storeElementArray(aWriter, indent, resourceLinks);
        }
    }
}
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

            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();
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

            NamingResources namingResources = server.getGlobalNamingResources();

            for (ContextResource resource : namingResources.findResources()) {
                log.info("Created " + getResourceTypeDisplayName(resource) + " with JNDI binding java:comp/env/" + resource.getName() + " on server");
            }
            for (ContextResourceLink resource : namingResources.findResourceLinks()) {
                log.info("Created " + getResourceTypeDisplayName(resource) + " with JNDI binding java:comp/env/" + resource.getName() + " on server");
            }
        } else {
            return;
        }
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

        // remove all jndi entries where there is a configured Tomcat resource or resource-link
        for (final ContextResource resource : naming.findResources()) {
            final String name = resource.getName();
            removeRef(webApp, name);
        }
        for (final ContextResourceLink resourceLink : naming.findResourceLinks()) {
            final String name = resourceLink.getName();
            removeRef(webApp, name);
        }

        // remove all env entries from the web xml that are not overridable
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

        // remove all jndi entries where there is a configured Tomcat resource or resource-link
        for (final ContextResource resource : naming.findResources()) {
            final String name = resource.getName();
            removeRef(webApp, name);
        }
        for (final ContextResourceLink resourceLink : naming.findResourceLinks()) {
            final String name = resourceLink.getName();
            removeRef(webApp, name);
        }

        // remove all env entries from the web xml that are not overridable
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

        // remove all jndi entries where there is a configured Tomcat resource or resource-link
        for (final ContextResource resource : naming.findResources()) {
            final String name = resource.getName();
            removeRef(webApp, name);
        }
        for (final ContextResourceLink resourceLink : naming.findResourceLinks()) {
            final String name = resourceLink.getName();
            removeRef(webApp, name);
        }

        // remove all env entries from the web xml that are not overridable
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.findResourceLinks()

            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();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.