I like putting everything possible into servlet.xml even though that means
restarting tomcat.  The advantage to me (and it is purely personal
preference) is that then I can look at one file and see straight away
everything that is going on with my system.  I don't understand people who
break up config files into  smaller files here, there and everywhere around
the tree.

If you are just starting out and you are not used to configuring Tomcat
servers then you might start this way and change if you don't like it or
vice-versa.

Hope that's of some help.

Andoni.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 9:40 AM
Subject: Tomcat server.xml context-specific configuration


> Hi there,
>
> Since I got no replies to any of my inquiries regarding the use of
> context-specific information in server.xml, it seems as if nobody else
> uses this configuration property?
>
> What is the recommended place to put context-specific parameters into?
> e.g.
> <Context crossContext="true" debug="0" docBase="myapp" path="/myapp"
> reloadable="true">
>                 <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="wartung_log." suffix=".txt" timestamp="true"/>
>         <ResourceLink name="jdbc/mydb" global="MyDatabase"/>
>         <Parameter name="myparam" override="false" value="xxx"/>
> </Context>
>
> Should I
> *) put it into server.xml (as is done with the examples demo-context) with
> the disadvantage of having to restart Tomcat if changes occur.
> *) put it into webapps/myapp.xml (with the same disadvantage as above)
> *) put it into web.xml as servlet-specific configuration?
> Or can I also store context-specific info in web.xml??
>
> Thx alot
> Johannes


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to