Brian - 

destroy() is the flipside of init(), and is called by the servlet engine
when the servlet is being unloaded.  

If you want to ensure some processing always occurs in your doGet, doPost,
or service methods, use try - catch - finally blocks, and put the code you
need to execute in the finally.  

HTH, Michael


> -----Original Message-----
> From: Brian J. Sayatovic [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 22, 2000 8:41 AM
> To: JRun-Talk
> Subject: destroy() not getting called?
> 
> 
> How can I ensure that destroy() is getting called in my 
> servlets.  I made a
> simpistic example that simply prints to System.out, but 
> 'detory' calls are
> not showing up in the log.  Is there anything that could be 
> interferring
> with destory begin called?
> 
> I'm using JRun 2.3.3 on NT4-SP6 with PWS.
> 
> --
> Brian J. Sayatovic
> mailto:[EMAIL PROTECTED]
> 
> --------------------------------------------------------------
> ----------------
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe: 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
> s/jrun_talk
> or send a message to [EMAIL PROTECTED] with 
> 'unsubscribe' in the body.
> 
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to