job.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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="jobstore9" class="org.springframework.scheduling.quartz.JobDetailBean">
  6. <property name="jobClass">
  7. <value>com.gyee.timer.FeatureExtJob</value>
  8. </property>
  9. <property name="jobDataAsMap">
  10. <map>
  11. <entry key="gradeAssessmentService" value-ref="gradeAssessmentService" />
  12. </map>
  13. </property>
  14. </bean>
  15. <!--****************************************************************************************************************-->
  16. <bean id="cron9" class="org.springframework.scheduling.quartz.CronTriggerBean">
  17. <property name="jobDetail">
  18. <ref bean="jobstore9" />
  19. </property>
  20. <property name="startDelay" value="10000" />
  21. <property name="cronExpression">
  22. <value>0 30 7 * * ?</value>
  23. </property>
  24. </bean>
  25. <!--****************************************************************************************************************-->
  26. <bean autowire="no"
  27. class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  28. <property name="autoStartup" value="true" />
  29. <property name="triggers">
  30. <list>
  31. <ref local="cron9" />
  32. </list>
  33. </property>
  34. <property name="quartzProperties">
  35. <map>
  36. <entry key="org.quartz.threadPool.threadCount" value="15" />
  37. </map>
  38. </property>
  39. </bean>
  40. </beans>