beans.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
  3. "http://www.springframework.org/dtd/spring-beans.dtd"-->
  4. <beans xmlns="http://www.springframework.org/schema/beans"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xmlns:jaxws="http://cxf.apache.org/jaxws"
  7. xsi:schemaLocation="
  8. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  9. http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
  10. <!-- import resource="classpath:META-INF/cxf/cxf.xml" />
  11. <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
  12. <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
  13. <jaxws:endpoint
  14. id="cxfClient"
  15. implementor="CoreFS.SA03.CoreWebServiceServiceImpl"
  16. address="/CXF" /-->
  17. <!-- 报表配置 -->
  18. <!--
  19. <bean id="simpleService" class="CoreFS.SD05.SimpleService">
  20. </bean>
  21. <bean id="jobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
  22. <property name="jobClass">
  23. <value>CoreFS.SD05.MyQuartzJobBean</value>
  24. </property>
  25. <property name="jobDataAsMap">
  26. <map>
  27. <entry key="simpleService">
  28. <ref bean="simpleService" />
  29. </entry>
  30. </map>
  31. </property>
  32. </bean>
  33. <bean id="schedulerService"
  34. class="CoreFS.SD05.SchedulerServiceImpl">
  35. <property name="jobDetail">
  36. <ref bean="jobDetail" />
  37. </property>
  38. <property name="scheduler">
  39. <ref bean="quartzScheduler" />
  40. </property>
  41. </bean>
  42. <bean id="ReportEngine" class="CoreFS.SD05.ReportEngine">
  43. <property name="schedulerService" ref="schedulerService"/>
  44. </bean>
  45. <bean id="schedulerJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  46. <property name="targetObject" ref="ReportEngine"/>
  47. <property name="targetMethod" value="StartLoadJob"/>
  48. <property name="concurrent" value="false"/>
  49. </bean>
  50. <bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean" >
  51. <property name="jobDetail" ref="schedulerJobDetail"/>
  52. <property name="cronExpression">
  53. <value>0/10 * * * * ?</value>
  54. </property>
  55. </bean>
  56. <bean name="quartzScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  57. <property name="triggers">
  58. <list>
  59. <ref local="cronTrigger"/>
  60. </list>
  61. </property>
  62. <property name="quartzProperties">
  63. <props>
  64. <prop key="org.quartz.threadPool.class">
  65. org.quartz.simpl.SimpleThreadPool
  66. </prop>
  67. <prop key="org.quartz.threadPool.threadCount">10</prop>
  68. </props>
  69. </property>
  70. </bean>
  71. -->
  72. <!--NO
  73. <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  74. </bean>
  75. -->
  76. <!-- 变量的定义 -->
  77. <bean id="toolUtils" class="CoreFS.SC01.CoreConstantData">
  78. <property name="isAgain" value="false"/><!-- sysbeanstr -->
  79. <property name="sysbeanstr" value="TgDao"></property> <!-- 平台权限所使用的Dao如果默认为KgDao时可以不配置 -->
  80. <property name="isDevelop" value="true"/> <!--是否开启开发模式读取sql -->
  81. <property name="isEncryption" value="false" /> <!--SQL语xml文件ture为加密 false为不加密-->
  82. <!-- property name="delCondition" value="true" /--> <!--图片管理模块 ture为按总数删除图片 false为最后修改时间删除图片-->
  83. <!-- property name="isFTP" value="true"/--> <!--是否启用FTP上传、下载 -->
  84. <!-- property name="url"
  85. value="http://192.168.1.6:8088/CoreFS/remoting/HessianRemoting" /--> <!--远程调用的服务器路径-->
  86. </bean>
  87. </beans>