The "standard" way to specify configuration data in J2EE is through
JNDI. With this, I am not telling you to drop your config file, but
specify its path there ;-)
In Tomcat, the JNDI tree is specified in the server.xml descriptor. You
will find good documentation on this topic on the tomcat web pages
Rodrigo Ruiz
Milt Epstein wrote:
>On Thu, 6 May 2004, Arora, Avinash wrote:
>
>
>
>>Hi,
>> How can we specify the location of config file, so that we don't
>>have to hardcode it in our code. Thanks.
>>
>>
>
>You can specify the location in the config file.
>
>Oh wait, never mind.
>
>Other alternatives are specifying it as init-param's (either servlet
>or context) in web.xml. Still somewhat hard-coded, but not as bad as
>putting it in the servlet code itself. A bit of a bootstrapping issue
>here.
>
>Also, I think I saw something here recently about being to specify
>certain init-param's in server.xml, not sure of the details, maybe
>that's a possibility.
>
>Milt Epstein
>Research Programmer
>Integration and Software Engineering (ISE)
>Campus Information Technologies and Educational Services (CITES)
>University of Illinois at Urbana-Champaign (UIUC)
>mepstein@(protected)
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>
>
>
--
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.678 / Virus Database: 440 - Release Date: 06/05/2004
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)