On 03/07/2015 12:43, Maxim Solodovnik wrote: > Hello, > > sorry for the newbie question but I was unable to find the answer using > search :( > I'm trying to migrate custom embedded tomcat loader from Tomcat6 (works as > expected with Tomcat7 with lots of deprecations) to Tomcat8. > > Previously it was possible to add multiple Engines to Tomcat instance, how > this can be achieved in Tomcat8? > > source file for Tomcat.java states: "// Single engine, service, server, > connector - few cases need more, they can use server.xml" unfortunately I > need to do it using java (without server.xml) > > Thanks in advance for your answers!
Use Tomcat as your starting point. The "Single..." refers to the utility methods (e.g. getConnector()). They will only return the first created instance of each type. You can still call getServer().addServicer(...) etc. to add multiple Services, Connectors etc. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org