tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Adding Host node to server.xml
Date Sun, 12 Sep 2010 09:28:47 GMT
On 12/09/2010 09:59, Wesley Acheson wrote:
> Hi,
> I'm looking at adding a host node to server.xml on the 6.0 branch via
> host manager, If I get this correct there can be more than one service
> node which in turn has one Engine which contains the hosts.
> So assuming there are multiple Service nodes how do I know which
> Engine node to add the Host node to?

Take a look at how the Host manager adds hosts currently. It will add
them to the correct engine.

> does (Service) host.getParent() make sense, If so is service name both
> compulsory and guaranteed to be unique?

Get the correct engine the way host manager does (or something similar).
You then want engine.getService()

Yes, you can safely assume service names are a) non-null and b) unique.


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

View raw message