job.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3. <beans>
  4. <!--****************************************************************************************************************-->
  5. <bean name="jobstore1" class="org.springframework.scheduling.quartz.JobDetailBean">
  6. <property name="jobClass">
  7. <value>com.gyee.timer.EeatureExtJob</value>
  8. </property>
  9. <property name="jobDataAsMap">
  10. <map>
  11. <entry key="gradeAssessmentService" value-ref="gradeAssessmentService" />
  12. </map>
  13. </property>
  14. </bean>
  15. <bean name="jobstore9" class="org.springframework.scheduling.quartz.JobDetailBean">
  16. <property name="jobClass">
  17. <value>com.gyee.timer.FeatureExtJob</value>
  18. </property>
  19. <property name="jobDataAsMap">
  20. <map>
  21. <entry key="gradeAssessmentService" value-ref="gradeAssessmentService" />
  22. </map>
  23. </property>
  24. </bean>
  25. <!--****************************************************************************************************************-->
  26. <bean id="cron1" class="org.springframework.scheduling.quartz.CronTriggerBean">
  27. <property name="jobDetail">
  28. <ref bean="jobstore1" />
  29. </property>
  30. <property name="startDelay" value="10000" />
  31. <property name="cronExpression">
  32. <value>0 45 7 * * ?</value>
  33. </property>
  34. </bean>
  35. <bean id="cron9" class="org.springframework.scheduling.quartz.CronTriggerBean">
  36. <property name="jobDetail">
  37. <ref bean="jobstore9" />
  38. </property>
  39. <property name="startDelay" value="10000" />
  40. <property name="cronExpression">
  41. <value>0 30 7 * * ?</value>
  42. </property>
  43. </bean>
  44. <!--****************************************************************************************************************-->
  45. <bean autowire="no"
  46. class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  47. <property name="autoStartup" value="true" />
  48. <property name="triggers">
  49. <list>
  50. <ref local="cron9" />
  51. <ref local="cron1" />
  52. </list>
  53. </property>
  54. <property name="quartzProperties">
  55. <map>
  56. <entry key="org.quartz.threadPool.threadCount" value="15" />
  57. </map>
  58. </property>
  59. </bean>
  60. </beans>