Stopping the server will cause JRun to invoke the destroy method of all
loaded servlets. Also, triggering a servlet reload by modifying a loaded
servlet's classfile will cause all loaded servlets to be reloaded, so this
will trigger the destroy() method to be called too.
-Spike
> -----Original Message-----
> From: ajaikumar peddapanga [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 06, 2000 3:10 PM
> To: [EMAIL PROTECTED]
> Subject: How to test for the Destroy Method with JRUN...
>
>
> Hello All!!
> I want to write some objects to a persistant storage when the
> Servlet Engine
> calls the Destroy method .I am using jRUN as my servlet
> engine.Well the
> problem is it seems to load the servlet as soon as u place
> the classfile in
> the servlets directory.and thats fine too .Well but i cant
> figure out a way
> to make it unload the servlet so that it will call the
> destroy() method.Can
> some one tell me what are the situations it calls destroy
> method ..and how i
> can make it do so for testing purposE?
>
> Thanx a lot in advance
>
> ajai...
> ______________________________________________________________
> __________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html