Erik Price wrote:

However, it must be possible because I believe log4j uses properties files from JAR files in webapps. So, you might want to ask around there or check the log4j source code. Please let us know what you find!

Responding to my own post, I took a look at the Log4J source and it /appears/ that Log4J does exactly what you described earlier -- it queries the class loader for the specified resource and then returns the URL of that resource.


classLoader = getTCL();
if(classLoader != null) {
LogLog.debug("Trying to find ["+resource+"] using context classloader "
+classLoader+".");
url = classLoader.getResource(resource);
if(url != null) {
return url;
}
}


The code that I am referring to is viewable at this URL:

http://cvs.apache.org/viewcvs/jakarta-log4j/src/java/org/apache/log4j/helpers/Loader.java?rev=1.18&content-type=text/vnd.viewcvs-markup


Erik



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



Reply via email to