Roy Tang

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About

Someone on quora asked:

When is a destroy method called for a servlet?

This will largely depend on the implementation of the servlet container. It will be called whenever the servlet container deallocates the servlet instance. The servlet spec does not specify when this should happen. The servlet instance may be active for the entire duration that the servlet container is up, or it may deallocate instances earlier for performance purposes

Posted by under notes at #answers
Also on: quora / 0