Ehhh,... you could, uh, load a non-servlet class from a servlet's init()
method,... I don't know of any other way, short of hacking the Tomcat
source.
What does your non-servlet do that you want done at Tomcat's startup? Are
you sure it shouldn't be part of a servlet? (And if it isn't, why do you
want it done in Tomcat?)
-- Bill K.
> -----Original Message-----
> From: Vinoj Vijayan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 16, 2001 6: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
> >
>