Hi ,
The general solution that we have used in our web application is to srite a
BootStrap Servlet...And load all the configurations in the init method of this
servlet...
Also in web.xml, U speciry the highest priority for this servlet Using the
load on startup
element..
Example:
<servlet>
<servlet-name>InitializationServlet</servlet-name>
<display-name>InitializationServlet</display-name>
<servlet-class>urPackage.InitializationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
This ensures that this will be the first servlet to be initialised..
regards,
Shirish
-----Original Message-----
From: gourav.pani [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 2:21 PM
To: struts-user
Subject: RE: loading configuration on startup
write a Log4JInit servlet which loads on startup based on your web.xml. you
can find sample code on the web.
-----Original Message-----
From: Softwareentwicklung Hauschel
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 7:00 AM
To: Struts Users Mailing List
Subject: AW: loading configuration on startup
But my log4j.properties are a log4j.xml file.
That doesn't work in classpath ;-(
In addition there are mor configurations i need for the whole applikation.
thanks and best regards
Fredy
-----Urspr�ngliche Nachricht-----
Von: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 22. Januar 2003 12:51
An: Struts Users Mailing List
Betreff: Re: loading configuration on startup
2003. janu�r 22. 12:42 d�tummal Softwareentwicklung Hauschel ezt �rtad:
> Hey all,
> were did i load my own configuration on startup ?
>
> for example the log4j configuration.
It is loaded automagically supposing that the log4j.properties resides on
your
CLASSPATH.
Tib
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>