mount

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
 1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
3 xsi:schemaLocation="
4 http://www.springframework.org/schema/beans
5 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
6 http://www.springframework.org/schema/context
7 http://www.springframework.org/schema/context/spring-context-3.0.xsd
8 http://www.springframework.org/schema/tx
9 http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
10 http://www.springframework.org/schema/aop
11 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
12 <!-- cronTrigger extends QuartzJobBean,MyJob1 -->
13 <bean id="myJob1" class="org.springframework.scheduling.quartz.JobDetailBean">
14 <property name="jobClass" value="com.apple.sqm.dnwd.detect.delta.Detect" />
15 </bean>
16 <bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
17 <property name="jobDetail" ref="myJob1" />
18 <property name="cronExpression" value="0/5 * * * * ?" />
19 </bean>
20 <!-- set scheduler -->
21 <bean id="myScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
22 <property name="triggers">
23 <list>
24 <ref bean="cronTrigger" />
25 </list>
26 </property>
27 <property name="quartzProperties">
28 <props>
29 <prop key="org.quartz.threadPool.threadCount">50</prop>
30 <prop key="org.quartz.scheduler.instanceId">AUTO</prop>
31 </props>
32 </property>
33 </bean>
34 </beans>

 

posted on 2011-11-09 17:10  http://guoyinfeng.info/  阅读(199)  评论(0编辑  收藏  举报