Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

destroy() in servlet

Ads

 
 

Share on Google+Share on Google+

Vijay Kumar
destroy() in servlet
1 Answer(s)      6 years and 9 months ago
Posted in : Servlet Interview Questions

Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

Ads
View Answers

November 2, 2010 at 2:48 PM


Yes, but Before calling the destroy() method, the servlet container waits for the remaining threads that are executing the servlet?s service() method to finish.


Ads