How do you start your web/app server. Usually, its through a bat file which
contains the java command. If that's the case, then you can pass your system
properties as part of java command. Something like:
java -D"myWebApp=c:/somepath" .........
You will have to check the bat file which starts the server to see where this
fits in.
regards,
-Jaikiran
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
Hi everyone,
I'd like that classes running in a web application would log to a file whose
path is local to the absolute path where the web app is running. This means
that, named ${myWebApp} my web application, I'd like to define the FileAppender
file property to
${myWebApp}'s absolute path . I've tried doing this by creating a
ServletContextListener implementation and declaring in it a SystemProperty, but
it doesnt work so far: i mean, it works but not the very first time that the
web app rises, and this happens because class loader loads the log4j.jar before
the ContextListener had called,I presume. Any hints are appreciated
Ign Rome, Italy
___________________________________________________________________
Conto Arancio al 4% fino a fine 2006 - Zero spese, soldi sempre disponibili.
Aprilo subito
http://click.libero.it/ING
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Find out what India is talking about on Yahoo! Answers India.