Examples of NamingContextListener


Examples of org.apache.catalina.core.NamingContextListener

     */
    public void enableNaming() {
        // Make sure getServer() has been called as that is where naming is
        // disabled
        getServer();
        server.addLifecycleListener(new NamingContextListener());
       
        System.setProperty("catalina.useNaming", "true");

        String value = "org.apache.naming";
        String oldValue =
View Full Code Here

Examples of org.apache.catalina.core.NamingContextListener

            }
        }
        standardContext.addLifecycleListener(new OpenEJBContextConfig(new StandardContextInfo(standardContext)));

        // force manually the namingContextListener to merge jndi in an easier way
        final NamingContextListener ncl = new NamingContextListener();
        try {
            ncl.setName((String) getNamingContextName.invoke(standardContext));
        } catch (final Exception e) {
            ncl.setName(getId(standardContext));
        }
        ncl.setExceptionOnFailedWrite(standardContext.getJndiExceptionOnFailedWrite());
        standardContext.setNamingContextListener(ncl);
        standardContext.addLifecycleListener(ncl);
        standardContext.addLifecycleListener(new TomcatJavaJndiBinder());

        // listen some events
View Full Code Here

Examples of org.apache.catalina.core.NamingContextListener

     */
    public void enableNaming() {
        // Make sure getServer() has been called as that is where naming is
        // disabled
        getServer();
        server.addLifecycleListener(new NamingContextListener());
       
        System.setProperty("catalina.useNaming", "true");

        String value = "org.apache.naming";
        String oldValue =
View Full Code Here

Examples of org.apache.catalina.core.NamingContextListener

     */
    public void enableNaming() {
        // Make sure getServer() has been called as that is where naming is
        // disabled
        getServer();
        server.addLifecycleListener(new NamingContextListener());
       
        System.setProperty("catalina.useNaming", "true");

        String value = "org.apache.naming";
        String oldValue =
View Full Code Here

Examples of org.apache.catalina.core.NamingContextListener

     */
    public void enableNaming() {
        // Make sure getServer() has been called as that is where naming is
        // disabled
        getServer();
        server.addLifecycleListener(new NamingContextListener());
       
        System.setProperty("catalina.useNaming", "true");

        String value = "org.apache.naming";
        String oldValue =
View Full Code Here

Examples of org.apache.catalina.core.NamingContextListener

     */
    public void enableNaming() {
        // Make sure getServer() has been called as that is where naming is
        // disabled
        getServer();
        server.addLifecycleListener(new NamingContextListener());
       
        System.setProperty("catalina.useNaming", "true");

        String value = "org.apache.naming";
        String oldValue =
View Full Code Here

Examples of org.apache.catalina.core.NamingContextListener

     */
    public void enableNaming() {
        // Make sure getServer() has been called as that is where naming is
        // disabled
        getServer();
        server.addLifecycleListener(new NamingContextListener());

        System.setProperty("catalina.useNaming", "true");

        String value = "org.apache.naming";
        String oldValue =
View Full Code Here

Examples of org.apache.catalina.core.NamingContextListener

     */
    public void enableNaming() {
        // Make sure getServer() has been called as that is where naming is
        // disabled
        getServer();
        server.addLifecycleListener(new NamingContextListener());
       
        System.setProperty("catalina.useNaming", "true");

        String value = "org.apache.naming";
        String oldValue =
View Full Code Here

Examples of org.apache.catalina.core.NamingContextListener

        // bind extra stuff at the java:comp level which can only be
        // bound after the context is created
        final ClassLoader originalLoader = thread.getContextClassLoader();
        thread.setContextClassLoader(classLoader);

        final NamingContextListener ncl = getNamingContextListener(standardContext);
        final String listenerName = ncl.getName();
        ContextAccessController.setWritable(listenerName, standardContext);
        try {
            final Context openejbContext = (Context) getContainerSystem().getJNDIContext().lookup("openejb");
            final Context root = (Context) ContextBindings.getClassLoader().lookup("");
            final Context comp = (Context) ContextBindings.getClassLoader().lookup("comp"); // usually fails
View Full Code Here

Examples of org.apache.catalina.core.NamingContextListener

     */
    public void enableNaming() {
        // Make sure getServer() has been called as that is where naming is
        // disabled
        getServer();
        server.addLifecycleListener(new NamingContextListener());
       
        System.setProperty("catalina.useNaming", "true");

        String value = "org.apache.naming";
        String oldValue =
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.