job.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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="jobstore" class="org.springframework.scheduling.quartz.JobDetailBean">
  6. <property name="jobClass">
  7. <value>com.gyee.timer.WtTargetReportJob</value>
  8. </property>
  9. <property name="jobDataAsMap">
  10. <map>
  11. <entry key="wtReportService" value-ref="wtReportService" />
  12. </map>
  13. </property>
  14. </bean>
  15. <bean id="cron" class="org.springframework.scheduling.quartz.CronTriggerBean">
  16. <property name="jobDetail">
  17. <ref bean="jobstore" />
  18. </property>
  19. <property name="startDelay" value="10000" />
  20. <property name="cronExpression">
  21. <value>0 30 8 * * ?</value>
  22. </property>
  23. </bean>
  24. -->
  25. <bean name="jobstore2" class="org.springframework.scheduling.quartz.JobDetailBean">
  26. <property name="jobClass">
  27. <value>com.gyee.timer.WtTargetReport</value>
  28. </property>
  29. <property name="jobDataAsMap">
  30. <map>
  31. <entry key="wttragetreportService" value-ref="wttragetreportService" />
  32. <entry key="wttragetreportmainService" value-ref="wttragetreportmainService" />
  33. <entry key="wttragetreportchartService" value-ref="wttragetreportchartService" />
  34. <entry key="wttragetreportfnlylService" value-ref="wttragetreportfnlylService" />
  35. <entry key="wttragetreportpartService" value-ref="wttragetreportpartService" />
  36. <entry key="wttragetreportkkxfxService" value-ref="wttragetreportkkxfxService" />
  37. <entry key="wttragetreportnhydService" value-ref="wttragetreportnhydService" />
  38. <entry key="wttragetreportxndjpjService" value-ref="wttragetreportxndjpjService" />
  39. <entry key="wtReportService" value-ref="wtReportService" />
  40. </map>
  41. </property>
  42. </bean>
  43. <bean id="cron2" class="org.springframework.scheduling.quartz.CronTriggerBean">
  44. <property name="jobDetail">
  45. <ref bean="jobstore2" />
  46. </property>
  47. <property name="startDelay" value="10000" />
  48. <property name="cronExpression">
  49. <value>0 30 8 * * ?</value>
  50. </property>
  51. </bean>
  52. <bean autowire="no"
  53. class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  54. <property name="autoStartup" value="true" />
  55. <property name="triggers">
  56. <list>
  57. <ref local="cron2" />
  58. <!-- <ref <ref local="cron" /> local="cron" /> -->
  59. </list>
  60. </property>
  61. <property name="quartzProperties">
  62. <map>
  63. <entry key="org.quartz.threadPool.threadCount" value="10"/>
  64. </map>
  65. </property>
  66. </bean>
  67. </beans>