Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Destroy function inservlet

  Asked By: Lourdes    Date: Dec 05    Category: Java    Views: 701
  

If I give a call to Sytem.exit(0) in my servet will the conatiner call the
destroy function?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Pravat Jainukul     Answered On: Dec 05

System.exit will finalize your java vm. So all finalizer's have to be executed.
Your servlet may be unloaded after destroy function  call.

But no matter what happens. your java vm will be shutdown.

 
Didn't find what you were looking for? Find more on Destroy function inservlet Or get search suggestion and latest updates.




Tagged: