tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Configuration Variables
Date Tue, 28 Jan 2003 17:45:01 GMT
Context parameters are available to anything running within your context
as long as the server is up.  You access them from a servlet (any method
in the servlet, not just init(), using

Context parameters are not typically tunable at runtime from the
container (in this case tomcat) administration module.

For that, you have to use the more heavyweight environment resource JNDI
mechanism.  For tomcat, there's a how-to here:

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Jim Henderson []
>Sent: Tuesday, January 28, 2003 12:39 PM
>Subject: Configuration Variables
>I can not seem to find this in my books, can someone explain this?
>What WAR file web.xml parameter can be used to pass application wide
>just a single Servlet or JSP) configuration data to JSP/Servlet that
>is adjustable from Tomcat-Administrator control page, and what Java
>(xxx.getYyyy("parmName")) do I use to access the data given the
>name?  I would like to access the parameter from the program at any
>and not just when the Servlet is loaded (init time).
>I wish the O'Reilly book clearly explained the relationships of the
>accessor methods, the web.xml parameters, and the Tomcat Admin options.
>seem to have gone round and round with this and now I'm lost.

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

View raw message