just do something like:

if(request.getParameter("quit") == "1"){
//insert destroy code here
}

then just call http://yourdomain.com/servlet?quit=1

Regards!



>From: "Rui Oliveira" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>Subject: RE: Tomcat does not Auto-reload.
>Date: Wed, 12 Jun 2002 15:49:29 +0100
>
>When is this destroy method invoked? If I copy the newer version of the
>servlet to the WEB-INF/classes directory, how will a destroy method be
>helpful?
>
>Rui
>
> > -----Original Message-----
> > From: kf platypus [mailto:[EMAIL PROTECTED]]
> > Sent: quarta-feira, 12 de Junho de 2002 15:29
> > To: [EMAIL PROTECTED]
> > Subject: Re: Tomcat does not Auto-reload.
> >
> > That's due in part to the servlet architectures caching mechanism.
> > Typically
> > we added a method to each servlet to destroy it. I don't know if
>there's a
> > better method than that though as I know I would like to see one
>because
> > they bith seem a bit ghetto.
> >
> > Regards!
> >
> >
> > >From: "Rui Oliveira" <[EMAIL PROTECTED]>
> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Subject: Tomcat does not Auto-reload.
> > >Date: Wed, 12 Jun 2002 15:26:23 +0100
> > >
> > >Hello,
> > >
> > >
> > >
> > >My Tomcat does not auto-reloads the servlets. Whenever I compile my
> > >servlets, I place them under the WEB-INF/classes dir, but they simple
>do
> > >not auto-reload. I have to restart TOMCAT before the update takes
> > >effect.
> > >
> > >
> > >
> > >Can someone tell me why?
> > >
> > >
> > >
> > >I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.
> > >
> > >
> > >
> > >
> > >
> > >Thx
> > >
> > >Rui
> > >
> >
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
> > http://explorer.msn.com/intl.asp.
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:tomcat-user-
> > [EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:tomcat-user-
> > [EMAIL PROTECTED]>
> >
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to