熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java開源技術 >> 正文

Spring集成Quartz的XML配置

2013-11-23 20:40:20  來源: Java開源技術 

  <?xml version= encoding=UTF?>

  <beans xmlns=

  xmlns:xsi=instance

  xmlns:aop=

  xmlns:tx=

  xsi:schemaLocation=

  beansxsd

  

  aopxsd

  

  txxsd

  defaultautowire=no defaultlazyinit=false>

  <bean id=someData class=comspringjobJobData/>

  <bean id=jobDetailBean

  class=orgspringframeworkschedulingquartzJobDetailBean>

  <property name=jobClass

  value=comspringjobDemoJob/>

  <property name=jobDataAsMap>

  <map>

  <entry key=jobData valueref=someData/>

  </map>

  </property>

  </bean>

  <bean id=jobDetailBean

  class=orgspringframeworkschedulingquartzJobDetailBean>

  <property name=jobClass

  value=comspringjobDemoJob/>

  <property name=jobDataAsMap>

  <map>

  <entry key=jobData valueref=someData/>

  </map>

  </property>

  </bean>

  <bean id=simpleTriggerBean

  class=orgspringframeworkschedulingquartzSimpleTriggerBean>

  <property name=jobDetail ref=jobDetailBean/>

  <property name=repeatInterval value=/>

  <property name=startDelay value=/>

  </bean>

  <bean id=simpleTriggerBean

  class=orgspringframeworkschedulingquartzSimpleTriggerBean>

  <property name=jobDetail ref=jobDetailBean/>

  <property name=repeatInterval value=/>

  <property name=startDelay value=/>

  </bean>

  <bean id=schedulerFactoryBean

  class=orgspringframeworkschedulingquartzSchedulerFactoryBean>

  <property name=triggers>

  <list>

  <ref bean=simpleTriggerBean/>

  <ref bean=simpleTriggerBean/>

  </list>

  </property>

  </bean>

  </beans>


From:http://tw.wingwit.com/Article/program/Java/ky/201311/28873.html
  • 上一篇文章:

  • 下一篇文章:
  • 推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.