Write Destroy() method in Sevlet

Write Destroy() method in Sevlet

Postby Rose » Fri Feb 15, 2013 4:04 pm

What happens if you write destroy() method in Servlet?
Rose
 
Posts: 20
Joined: Tue Jan 29, 2013 5:16 am

Re: Write Destroy() method in Sevlet

Postby Kishan » Mon Feb 18, 2013 5:00 am

Yes, you can override destroy() method in the servlet. This method gets invoked by the container before servlet object garbage collected. As a programmer you can't control when this is going to invoked.
Kishan
 
Posts: 191
Joined: Tue Jan 29, 2013 4:21 am


Return to Servlets

Who is online

Users browsing this forum: No registered users and 1 guest

cron