Dear Forum, Is it possible to dynamically add/remove hosts through code without restarting Tomcat (6.0)?
I am writing an application that creates new websites on the fly (eg. website1.mydomain.com, website2.mydomain.com etc). Each of these websites will exist in a separate directory on the server - this is so they may be upgraded independently in the future. 1. I have considered programatically editing server.xml, but have ruled this out since it would require restarting Tomcat afterwards (and hence downtime of existing sites). 2. I have also considered running multiple instances of Tomcat, but each instance would have to use a different TCP port. In the absence of any additional software, this would mean I would need lots of external IPs. 3. I have looked at the 'tomcat-manager' app (and considered interfacing with it via HTTP) but the start function does not seem to work and from what I have read, this app is no longer supported? Would anybody be able to advise me on the best approach please? I have not ruled out any of the above options completely if they can be implemented reliably and without restarting the server. Thank you in advance! Richard. -- View this message in context: http://old.nabble.com/Adding-removing-hosts-dynamically--tp27261390p27261390.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org