Hi,

Howdy,
While Mr. (?) Lenharcik's suggestion will work, I'd suggest doing it
slightly differently: use a ServletContextListener and initialize log4j
in the contextInitialized() method.  

Mr is right; But only if you are using the servlet api 2.3 this would be
work. My solution was done before... ;-)

>(if your
>file is in /classes you can use reflection
>CLASSNAME.class.getRessource("/configfile.lcf")

Technically speaking, that's not reflection ;)  But it'll work.  For
people like me who don't like to mix config files and compiled code, you
can use the

I love it ;-) 
"The reflection API represents, or reflects, the classes, interfaces, and
objects in the current Java Virtual Machine." 
With the reflection API you can: 
Determine the class of an object. 
....

Exactly this is done here. What in your opinion is that else?



Juraj

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

Reply via email to