job3.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. <bean name="jobstore" class="org.springframework.scheduling.quartz.JobDetailBean">
  5. <property name="jobClass">
  6. <value>com.gyee.timer.WtTargetReport</value>
  7. </property>
  8. <property name="jobDataAsMap">
  9. <map>
  10. <entry key="wttragetreportService" value-ref="wttragetreportService" />
  11. <entry key="wttragetreportmainService" value-ref="wttragetreportmainService" />
  12. <entry key="wttragetreportchartService" value-ref="wttragetreportchartService" />
  13. <entry key="wttragetreportfnlylService" value-ref="wttragetreportfnlylService" />
  14. <entry key="wttragetreportpartService" value-ref="wttragetreportpartService" />
  15. <entry key="wttragetreportkkxfxService" value-ref="wttragetreportkkxfxService" />
  16. <entry key="wttragetreportnhydService" value-ref="wttragetreportnhydService" />
  17. <entry key="wttragetreportxndjpjService" value-ref="wttragetreportxndjpjService" />
  18. </map>
  19. </property>
  20. </bean>
  21. <bean id="cron" class="org.springframework.scheduling.quartz.CronTriggerBean">
  22. <property name="jobDetail">
  23. <ref bean="jobstore" />
  24. </property>
  25. <property name="startDelay" value="10000" />
  26. <property name="cronExpression">
  27. <value>0 30 7 * * ?</value>
  28. </property>
  29. </bean>
  30. <bean autowire="no"
  31. class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  32. <property name="autoStartup" value="true" />
  33. <property name="triggers">
  34. <list>
  35. <ref local="cron" />
  36. <!-- <ref local="cron" /> -->
  37. </list>
  38. </property>
  39. <property name="quartzProperties">
  40. <map>
  41. <entry key="org.quartz.threadPool.threadCount" value="10"/>
  42. </map>
  43. </property>
  44. </bean>
  45. </beans>