I'm old and easily confused: does an embedded tomcat server read (any) context.xml file?  I find conflicting answers /out there./

Using tomcat 9.0.40

   embeddedTomcat =new Tomcat();
   embeddedTomcat.setPort(tomcatPort);
   embeddedTomcat.enableNaming();
   embeddedTomcat.getConnector();// an init, really String contextRootPath 
=System.getenv("CATALINA_HOME");
   Context contextTomcat =embeddedTomcat.addContext("",new File(contextRootPath 
+"/sgs").getAbsolutePath());

I know it is finding WEB-INF/web.xml (under "sgs") and finds all my servlets, none of which are not named in the web.xml.

Reply via email to