I am trying to insert tomcat in a java application. I searched google but no luck. I could not find a good textbook. are there any complete manuals or api docs for embedding tomcat. this question may be duplicated by another question . but it seems old. I read that tomcat 7 api has improved a lot over tomcat 6. so I thought it was old. Any links for tutorials are welcome.
there is a more recent tomcat 8 embedding tutorial here .
its essence:
public static void main(String[] args) throws Exception { Tomcat tomcat = new Tomcat(); tomcat.setPort(8080); //actually deploy stuff on your tomcat by defining contexts tomcat.start(); tomcat.getServer().await(); }
Source: https://habr.com/ru/post/972714/More articles:Is there a way to disable the command link until the ajax response is processed - javascriptIntegration of problems causing problems - javascriptBootstrap responsive column order based on alphabetical content - htmlDoes a boolean set false false? - javaIllegalArgumentException with Mockito - androidJohan Bower installed vs npm install vs grunt - angularjsSelect / Deselect all buttons to select a shiny variable. - rMSBuild does not copy files using PublishProfile - visual-studio-2013Cloning a repo without tags? - gitHow to access std :: tr1 :: shared_ptr object in GDB - c ++All Articles