public class TomcatStopListener implements ServletContextListener {
public void contextDestroyed(ServletContextEvent arg0) {
// How to get reference of already running Quartz Scheduler here??
}
}
在tomcat服务器停止时,我想停止quartz调度程序以避免错误,我知道scheduler.shutdown(); 但是我怎样才能在这里获得对调度程序的引用?