tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Wiseley" <>
Subject Re: adding hosts without restarting
Date Thu, 15 May 2003 03:25:47 GMT

Thanks for your reply. I would assume that it would require a restart if there weren't JMX
beans and an admin web tool that can add hosts, presumably without a restart.

Different ports wouldn't do. Here's the issue. An application service provider (call it
offers their service as a customized web site for clients. Client A would pay for their site
at, which is a virtual host running on the same port (80) and IP as

The service provider allows clients to purchase this service on their web site and they need
to add the new site and have it working as part of the transaction, so restarting tomcat doesn't

I know both Weblogic and Websphere (and IIS for that matter) offer methods of doing this w/out
restarting... and it seems as though Tomcat does too. I just can't seem to find anyone who
has done it.


> This will almost certainly require a restart.  Did you read Tomcat's docs 
> thoroughly?  If not, that is where to look.
> Oh, well there is one way.  You can start completely separate instance of 
> Tomcat on different ports.  You can use CATALINA_BASE to specify each the 
> location of the separate instance(s).  This allows you to have a base 
> install of Tomcat, but provide completely separate configurations and 
> appBase's per Tomcat instance.  Is that what you are looking for?
> Jake
> At 09:48 PM 5/14/2003 +0000, you wrote:
> >I have to believe this has been asked a million times, but I can find no 
> >solution in the archives. I am running 4.12 stand-alone and need to be 
> >able to add virtual hosts (new individual sites with a new host name and 
> >root context) on the fly without restarting tomcat. I know that this 
> >should be technically possible because the web admin tool has this 
> >capability. Unfortunately, I'm not familiar with Struts, so that source 
> >code didn't help me much.
> >
> >I understand that contexts within an existing host can be added in 
> >numerous ways, but I need to add new hosts.
> >
> >Has anyone implemented a method of doing this, say from Java code or from 
> >a command line (Ant)? It would greatly help me out.
> >
> >Thanks in advance,
> >Matt
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> >For additional commands, e-mail:

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

View raw message