I’m running multiple web-apps on multiple ports. And I’m wondering what’s the real difference between running multiple Hosts in the same Service, and running multiple Services with separate Hosts.
I know this can be used to share Connectors, but there any other reason on is better than the other ?
Config 1 : Multiple Hosts
<Engine>
//APP 1
<Host>
<Context .... />
</Host>
//APP 2
<Host>
<Context .... />
</Host>
</Engine>
</Service>
</Server>
Config 2 : Multiple Services
<Server>
//APP 1
<Service>
<Connector ... />
<Connector ... />
<Engine>
<Host>
<Context .... />
</Host>
</Engine>
</Service>
//APP 2
<Service>
<Connector ... />
<Connector ... />
<Engine>
<Host>
<Context .... />
</Host>
</Engine>
</Service>
</Server>
The only really good reason to have separate
<Service>s is if you want to have a<Connector>that will (or will not) serve a specific subset of<Host>s or (as a consequence)<Context>s.