0
我得到以下信息:春季調度問題引起一個問題,該如何解決?
appears to have started a thread named [schedulerFactory_Worker-1] but has failed to stop it.
可能有人幫助我嗎?
我得到以下信息:春季調度問題引起一個問題,該如何解決?
appears to have started a thread named [schedulerFactory_Worker-1] but has failed to stop it.
可能有人幫助我嗎?
你的bean定義是否有一個銷燬鉤?即
<bean id="schedulerFactoryBean" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"
destroy-method="destroy">
不,但是我在類MoodysContextListener中實現了ContextDestroyed(ServletContextEvent arg0)方法,它實現了ServletContextListener。你能告訴我,如果我添加銷燬方法,那麼我應該用這種方法寫什麼? – Peter 2012-07-30 07:52:33
這是Quartz調度器的一個方法,所以你只需要將該屬性添加到應用上下文xml ... http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/scheduling/石英/ SchedulerFactoryBean.html#破壞()。嗯,也許它已經被調用了......我想這很容易調試。 – smbergin79 2012-07-30 23:59:49