No, the Servlet Spec doesn't allow for any automatic startup other
than servlets.  I believe that most people just create a special servlet
that doesn't handle any requests, it just processes an init (and perhaps
destroy) method.

        Randy

> -----Original Message-----
> From: Vinoj Vijayan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 16, 2001 9:55 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Require help
> 
> 
> Thanks.
> But instead of a servlet can't i just load a simple class ?
> 
> Rgds
> Vinoj
> 
> -----Original Message-----
> From: William Kaufman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 16, 2001 7:23 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Require help
> 
> 
> Dunno about Apache, but in Tomcat, you can add a 
> <load-on-startup> tag to
> the <servlet> element in web.xml.  That will both load the 
> servlet and call
> its init() method.
> 
> 
>                                                             -- Bill K.
> 
> 
> > -----Original Message-----
> > From: Vinoj Vijayan [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, April 15, 2001 11:32 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Require help
> > 
> > 
> > Hi
> >     We are using Apache 1.3.12 as the web server with Tomcat as the
> > JSP/Servlet engine. We have the following requirement, we are 
> > to instantiate
> > a class when the server starts up. How do we do this ? Do we have to
> > add/modify lines in the configuration files for apache 
> and/or tomcat? 
> > 
> > Please help.
> > 
> > Thanks and Regards
> > Vinoj
> > 
> 

Reply via email to