Calling System.exit() in Servlet's destroy() method

后端 未结 4 548
迷失自我
迷失自我 2020-12-15 14:01

This is a follow up to my earlier question.

Tomcat 5.0.28 had a bug where the Servlet\'s destroy() method was not being invoked by the container on a shutdown. This

4条回答
  •  爱一瞬间的悲伤
    2020-12-15 14:29

    When writing thread shutdown code like Jared's, I normally make the "keepGoing" member and "stopExecuting()" method static so that all threads get the signal to go down with one shutdown call. Good idea or no?

提交回复
热议问题