You could implement a javax.servlet.ServletContextListener that is
notified when your webapp loads / reloads.
Needs to be attached to your webapp in web.xml.
zhangfan wrote:
On 4/18/07, Zhang, Larry (L.) <[EMAIL PROTECTED]> wrote:
I need to load an .xml file when Websphere server starts up. I am
using Struts ActionServlet as the only servlet in the app and I do
have a CustomProcessor extending TilesRequestProcessor. I am trying to
load the .xml file when the server starts up. I configured to load
ActionServlet when server starts up in web.xml. Where should I put my
code to load the .xml file during the server starts up.
Thanks.
Maybe the PlugIn interface can provide what you want.
It's notified just before and after the application life cycle.
http://struts.apache.org/1.3.8/apidocs/index.html
Also, you should configure to load ActionServlet when server starts up
in web.xml, so that the your plugin will be invoked before that.
Good luck.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]