Package org.apache.catalina.core

Examples of org.apache.catalina.core.AprLifecycleListener


      tomcat.enableNaming();
    }

    if (addDefaultListeners) {
      Server server = tomcat.getServer();
      server.addLifecycleListener(new AprLifecycleListener());
      server.addLifecycleListener(new JasperListener());
      server.addLifecycleListener(new JreMemoryLeakPreventionListener());
      server.addLifecycleListener(new GlobalResourcesLifecycleListener());
      server.addLifecycleListener(new ThreadLocalLeakPreventionListener());
    }
View Full Code Here


      tomcat.enableNaming();
    }

    if (addDefaultListeners) {
      Server server = tomcat.getServer();
      server.addLifecycleListener(new AprLifecycleListener());
      server.addLifecycleListener(new JasperListener());
      server.addLifecycleListener(new JreMemoryLeakPreventionListener());
      server.addLifecycleListener(new GlobalResourcesLifecycleListener());
      server.addLifecycleListener(new ThreadLocalLeakPreventionListener());
    }
View Full Code Here

        tomcat.setConnector(connector);

        // Add AprLifecycleListener if we are using the Apr connector
        if (protocol.contains("Apr")) {
            StandardServer server = (StandardServer) tomcat.getServer();
            AprLifecycleListener listener = new AprLifecycleListener();
            listener.setSSLRandomSeed("/dev/urandom");
            server.addLifecycleListener(listener);
            connector.setAttribute("pollerThreadCount", Integer.valueOf(1));
        }

        File catalinaBase = getTemporaryDirectory();
View Full Code Here

        String contextPath = "/";

        // Add AprLifecycleListener
        StandardServer server = (StandardServer) tomcat.getServer();
        AprLifecycleListener listener = new AprLifecycleListener();
        server.addLifecycleListener(listener);

        context = tomcat.addWebapp(contextPath, appBase);
    }
View Full Code Here

TOP

Related Classes of org.apache.catalina.core.AprLifecycleListener

Copyright © 2018 www.massapicom. 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.