Package org.apache.catalina.startup

Examples of org.apache.catalina.startup.Tomcat.enableNaming()


        File webappDir = new File(baseDir, "webapps");
        webappDir.mkdirs();
        Tomcat tomcat = new Tomcat();
        tomcat.setBaseDir(baseDir.getPath());
        tomcat.setPort(9080);
        tomcat.enableNaming();
        Connector connector = tomcat.getConnector();
        // see https://issues.apache.org/bugzilla/show_bug.cgi?id=50360
        connector.setProperty("bindOnInit", "false");
        Host host = tomcat.getHost();
        host.setDeployOnStartup(false);
View Full Code Here


      tomcat.setBaseDir(".");

      Context ctx = tomcat.addWebapp("/archivator",
          new File("WebContent").getAbsolutePath());

      tomcat.enableNaming();

      ContextResource res = new ContextResource();
      res.setName("jdbc/archviatorDB");
      res.setType("javax.sql.DataSource");
      res.setAuth("Container");
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.