tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Migrating from embedded Tomcat6 to Tomcat8
Date Fri, 03 Jul 2015 12:28:27 GMT
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  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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message