tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject RE: Does TC 4.0 support multiple config files?
Date Tue, 09 Apr 2002 15:55:24 GMT

On Tue, 9 Apr 2002, Michael Roberts wrote:

> Date: Tue, 9 Apr 2002 09:46:57 -0400
> From: Michael Roberts <>
> Reply-To: Tomcat Users List <>
> To: 'Tomcat Users List' <>
> Subject: RE: Does TC 4.0 support multiple config files?
> This post is a second attempt to answer this question.  I would like to be
> able to define Contexts in Tomcat 4.0 without editing server.xml, or at
> least minimally editing it.  Is there a way to define the configuration of a
> Context in a separate file from server.xml?

This feature is not available in Tomcat 4.0.x, but *is* available in the
current nightly builds (what will become Tomcat 4.1).  You are able to
create a "context configuration file" separately from server.xml, and it
can contain the contents of the <Context> element (and all the nested
sub-elements) for a particular web app.

Coupled with this are some enhancements to the way that the Manager webapp
works, so that you can dynamically deploy and undeploy context
configuration files (that point to your webapp anywhere you want), with
complete control over all of the things you can configure in server.xml
about that webapp.  There's even some custom Ant tasks so you can add
automatic deployment, reloading, and undeployment to your build.xml files.

> If this is not possible, does anyone think that this would be a good
> proposal for future Tomcat development?

Try it, you'll like it :-).


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message