Re: Application configuration: how to read files from a web application

2006-05-18 Thread Hans Sowa
Hi Download the log4j Source from Apache. Look at the class org.apache.log4j.helpers.Loader and here you will a logic which is used to find the log4j.xml. This works for every application. Hope this will help. On 5/17/06, Tim Lucia <[EMAIL PROTECTED]> wrote: I have always responded with this

RE: Application configuration: how to read files from a web application

2006-05-17 Thread Tim Lucia
I have always responded with this http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html when this question comes up. It explains the most common ways to find and load resource files. It does not get specifically into servlets, however, or ServletContext.getResource[AsStream

RE: Application configuration: how to read files from a web application

2006-05-17 Thread Asaf Lahav
LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Mark Petrovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 11:31 AM To: Tomcat Users List Subject: Re: Application configuration: how to read files from a web application

Re: Application configuration: how to read files from a web application

2006-05-17 Thread Mark Petrovic
Asaf, hello. Good question and I don't know of any best practices. Others here may. With the default security policy (running without "-security") I have not attempted to write data from a web application, excluding of course activities such as log messages or writing to sockets connected to a

RE: Application configuration: how to read files from a web application

2006-05-17 Thread Asaf Lahav
Hi Mark, Is there a best practice for also writing/updating configuration file from within the application? Asaf Lahav VP R&D, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Mark Petrovic [mailto:[EMAIL PROTECTED