Just set the "load-on-startup" to a positive integer for this servlet in
web.xml.

Tschau
Christian

> -----Original Message-----
> From: Michael P. McCutcheon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 06, 2000 2:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re: how to run a class on startup of tomcat ??
> 
> 
> How do you get it to load the servlet automatically, without 
> running it,
> when Tomcat is started?
> 
> Mike
> 
> ----- Original Message -----
> From: "Christian Mack" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 06, 2000 3:51 AM
> Subject: RE: how to run a class on startup of tomcat ??
> 
> 
> > Hi Sudheshna
> >
> > That's easy.
> > Just use a servlet which gets startet on tomcats startup.
> > In it's init() just start your Runnable.
> > The doXXX() methods are empty, as this servlet will never be called.
> >
> > Tschau
> > Christian
> >
> > > -----Original Message-----
> > > From: Sudheshna Methuku [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, November 06, 2000 7:25 AM
> > > To: [EMAIL PROTECTED]
> > > Cc: Subhashini Chirunomula; Marthi Nalini
> > > Subject: how to run a class on startup of tomcat ??
> > >
> > >
> > > Hi All,
> > >
> > > We have a startup class which needs to be run when tomcat is
> > > started. Could
> > > anyone pl. tell us how it is possible. The startup class is
> > > not a servlet,
> > > it implements runnable and it in turn starts some more threads.
> > >
> > > Thanks,
> > > Sudheshna.M.
> > >
> >
> 

Reply via email to