sorry guys, i did have a look at tomcat archives and googled that query too but 
couldn't find anything for my need

as a run tomcat on win2k platform and i don't want the file to be acceesed for 
security reasons, i can't cant put it under my webapp root, ( of course i can't use 
tomcat realm authentication to protect it in this webapp)

as this property file does not only contains database parameters i think i can't use 
either JNDI DATASOURCE

so ... would it be a safe and common way to pu it under WEB-INF directory ?

thanks for your help


-----Message d'origine-----
De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
Envoy� : lundi 1 d�cembre 2003 20:45
� : Tomcat Users List
Objet : RE: Propeties file



Howdy,
I'd like to know why so few people bother to do a bit of research prior
to posting ;(

You can search the archives of this list, and you'll see that you have
two main choices, summarized as:
- Put it under your webapp root, and use ServletContext#getResource(...)
- Put it on the classpath, and use ClassLoader#getResource(...)

- You have other choices, but they're more complex, e.g. JNDI
env-entry-refs
- You should NOT use a File-based approach, as it won't work in a packed
WAR distribution

- Since these are connection properties for a DB, you may wish to let
tomcat setup your datasource for you: see the JNDI DataSources How-To
document.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: laurent marot [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 27, 2003 12:25 PM
>To: Tomcat Users List
>Subject: Propeties file
>
>Hi all,
>
>i have a web application running on Tomcat 4.1.24/win2k that connect
Oracle
>database.
>
>connection properties are in file and i'd  like to know where could be
the
>better way to store that properties files
>
>thanks
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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

Reply via email to