Spring scheduler shutdown error

前端 未结 4 1502
青春惊慌失措
青春惊慌失措 2020-12-13 21:22

During development a SPRING based scheduler in a tomcat container, I always get this logoutput at undeploy webapp or shutdown server:

Apr 28, 2010 4:21:33 PM         


        
4条回答
  •  无人及你
    2020-12-13 21:48

    The only way to ensure that threads are terminated, is to interrupt and join them.

    This can by done by implementing org.quartz.InterruptableJob, as described in the answer to the question How to prevent a memory leak in quartz [?].

提交回复
热议问题