If I give a call to Sytem.exit(0) in my servet will the conatiner call thedestroy function?
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.