Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在springs java中停止整个bean的所有quartz调度作业_Java_Quartz Scheduler - Fatal编程技术网

如何在springs java中停止整个bean的所有quartz调度作业

如何在springs java中停止整个bean的所有quartz调度作业,java,quartz-scheduler,Java,Quartz Scheduler,嗨,我正在尝试停止所有与整个豆子相关的工作。那么,谁能帮助解决这个问题呢 下面是我的bean.xml <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="triggers"> <list> <ref loc

嗨,我正在尝试停止所有与整个豆子相关的工作。那么,谁能帮助解决这个问题呢

下面是我的bean.xml

  <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">      
        <property name="triggers">
            <list>
            <ref local="projectedWeeklyRevenueCronTrigger"/>
            <!--<ref local="pdfEfficiencyByWeekProviderProgramCronTrigger"/> -->
            <ref local="actualWeeklyRevenueCronTrigger"/>
            <ref local="notesArchivalCronTrigger"/>
            <ref local="actualRevenueReportCronTriggerAfterInvoicing"/>
            <ref local="actualRevenueReportCronTriggerMidOfMonth"/>
            <ref local="efficienyReportCronTrigger"/>
            <ref local="dailyCensusCronTrigger"/>
            </list>
        </property>
    </bean>
提前谢谢。
-作业类中的Satheesh Appu

实现org.quartz.InterruptableJob接口,然后调用org.quartz.Scheduler.interruptJobKey停止或中断作业。看看