0 0

急需解决spring调度的问题25

利用spring3的task:scheduled进行任务调度处理,但是处理一段时间之后,所有的任务都停止了,没有任何的报错,有没有遇到类似情况的。。以下是代码:
<description>Scheduled settings</description>
     <!-- Enables the Spring Task @Scheduled programming model -->
    <!--  定时器开关  开始--> 
    <task:annotation-driven executor="taskExecutor" scheduler="scheduler"/>
    <task:executor id="taskExecutor" pool-size="10-50" queue-capacity="1000" keep-alive="300"/>
    <task:scheduler id="scheduler" pool-size="10"/>
    
    <!-- 方法上没有@Scheduled注解的配置方式 -->
    <task:scheduled-tasks>
    <task:scheduled ref="mainExecutor" method="doTicketStatus" fixed-delay="60000" />
    <task:scheduled ref="mainExecutor" method="getJingcaiSP" fixed-delay="120000" />
    <task:scheduled ref="mainExecutor" method="doInsertJingcaiIssue" cron="0 0 2,5 * * ?" />
    <task:scheduled ref="mainExecutor" method="dlcAwarByJingcaiJob" cron="0 0 9,12,19 * * ?" />
    <task:scheduled ref="mainExecutor" method="doInsert11x5Issue" cron="0 0/30 * * * ?" />
    <task:scheduled ref="mainExecutor" method="doInsertDltIssue" cron="0 0 0/1 * * ?" />
</task:scheduled-tasks>
2012年12月31日 10:05

1个答案 按时间排序 按投票排序

0 0

楼主我也遇到了这种问题,请问你解决没

2015年8月11日 11:25

相关推荐

Global site tag (gtag.js) - Google Analytics