On Sat, 4 Aug 2001, Randall Parker wrote:
> I see in the Tomcat 3.3b1 that to make deployment configs easier to maintain Tomcat
>3.3 supports Context
> xml tags in
> apps-<xxxx>.xml
> where xxxx is the name of a war file.
>
> This is really nice. One doesn't have to put info about a bunch of different war
>files into server.xml.
>
> So can Tomcat 4.0 do this as well?
>
No. XML provides mechanisms to combine multiple config files into a
single file (or you can just do this in a wrapper script around the
standard Tomcat startup script), so it's not really necessary for a server
to support it.
On the other hand, Tomcat 4 does support the concept of a <DefaultContext>
to establish default properties for all of the web apps that are not
configured explicitly. This can often eliminate the requirement for
explicit per-application configuation in the first place.
For example, to make all of your web apps automatically reloadable, you
would stick this inside a <Host> element:
<DefaultContext reloadable="true"/>
Craig McClanahan