tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Host Manager.
Date Fri, 03 Sep 2010 00:57:13 GMT
On 02/09/2010 21:06, Caldarale, Charles R wrote:
>> From: Wesley Acheson [mailto:wesley.acheson@gmail.com]=20
>> Subject: Host Manager.
>=20
>> Is there is no documentation for the host-manager?
>=20
> Very little that I've found.  You can learn a bit about it by looking a=
t its WEB-INF/web.xml file.
>=20
>> If I remember correctly from this list it doesn't persist=20
>> its settings is that correct?
>=20
> Correct.
>=20
>> How many people would be interested in it persisting its=20
>> settings, by editing the appropriate files.
>=20
> I would be interested.  Note that there's only one file to edit: conf/s=
erver.xml.
>=20
>> Is that in theory possible?
>=20
> It's all software...
>=20
>> to add the folder structure and the appropiate
>> context.xml files.
>=20
> That's not necessary - the conf/Catalina/[host]/... files are already c=
reated automatically as webapps are deployed under the new <Host>.  Only =
conf/server.xml needs to be updated.
>=20
>> Would it interfere too badly with tomcat while=20
>> it was running?
>=20
> No, Tomcat only reads server.xml during startup.  Whatever update mecha=
nism is used must insure that the file is never in an unparsable state (e=
=2Eg., don't update in place, instead create a new file and then rename i=
t).

May I gently steer you in the direction of the JMX API and the
Catalina:type=3DServer.Operations.storeConfig() command?

Not sure it works very well at the moment, but if it did...

p

>  - Chuck
>=20
>=20
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETAR=
Y MATERIAL and is thus for use only by the intended recipient. If you rec=
eived this in error, please contact the sender and delete the e-mail and =
its attachments from all computers.
>=20
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>=20


Mime
View raw message