Calling servlet's destroy method

前端 未结 8 1637
执念已碎
执念已碎 2021-01-01 16:03

As per the link http://www.xyzws.com/Servletfaq/when-is-destroy-of-servlets-called/20, one of the reason of calling destroy method is when the servlet hasn\'t got a

8条回答
  •  余生分开走
    2021-01-01 17:01

    Servlet's destroy method is a callback. These are the functions called by the container when a particular event is about to happen (in this case servlet about to be destroyed). Thus the whole purpose is if you want to do something (eg: cleaning up the resource) you can do those under this callback.

提交回复
热议问题