It is the first choice that I done but I thought that the web.xml was deployed when Tomcat is started if the application.war is placed under CATALINA_HOME\webapps directory and not on the first request. Do I have to modify the value of the <load-on-startup> parameter to "deploy" the web.xm file only on the first request ?
-----Original Message----- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: 12 September 2002 12:43 To: Struts Users Mailing List Subject: RE: Initialisations on the first request Take a look at ServletContextListener (Servlet 2.2 spec and higher). The container invokes them when the web application starts up. You can pass in init parameters via web.xml. Think of them as bootstrap classes for a servlet container. robert > -----Original Message----- > From: Thomas Recloux [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 12, 2002 6:13 AM > To: Struts Users Mailing List > Subject: Re: Initialisations on the first request > > > > > From: "Heligon Sandra" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Subject: Initialisations on the first request > > > > Hi, > > Hello, > > > I need to do initialisations (get ORB reference) on the first > > request, > > and return errors if one problem occurs. > > How can I do ? Can somebody send me an example ? > > Do I place the initialisations in the RequestProcessor's method ? > > I think that creating an Initialisation Servlet would be a better idea, > you could call your init statements in the init() method of the servlet. > This servlet should be load on startup (<load-on-startup> tag in web.xml) > > Thomas > > -- > Thomas Recloux > Université d'entreprise Norsys > [EMAIL PROTECTED] > http://www.norsys.fr > > > -- > 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]>