Re: Adding/removing hosts dynamically?

2010-01-21 Thread richard42
richard42 wrote: > > ...it appears to add it successfully, but only empty pages are served to > the browser for that website. This seems to happen on the live server and > my local machine (both Tomcat 6.0). > Please ignore this, I have since got it working (needed to add a co

Re: Adding/removing hosts dynamically?

2010-01-21 Thread richard42
Thank you for the advice! I have tried the host manager app as well as a class that I have just written which implements ContainerServlet. Unfortunately, I find that when I create a new host (by adding a StandardHost to the Engine), it appears to add it successfully, but only empty pages are ser

Adding/removing hosts dynamically?

2010-01-21 Thread richard42
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 se