Write a servlet LoadMyServlet and write code to read xml and initiale a Object put in chache r session wht ever u want
Add servlet definition in web.xml <servlet> <....... ...> <load-on-startup> 2 </load-on-startup> </servlet> This will work ...:) when server starts Use this will work for u Thanks & Regards Nagesh Reddy -----Original Message----- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 4:46 AM To: Struts Users Mailing List Subject: Re: Load an .xml file when server start up I've never actually used it but I think the DigestingPlugIn might do this for you http://tinyurl.com/2kzh8b Having said that probably the best plan would be to create your own ServletContextListener to do this which would be independant of Struts http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContex tListener.html Niall 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: The information in this e-mail is the property of InterGlobe and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]