remoting-servlet.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:context="http://www.springframework.org/schema/context"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
  5. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:task="http://www.springframework.org/schema/task"
  6. xsi:schemaLocation="
  7. http://www.springframework.org/schema/beans
  8. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  9. http://www.springframework.org/schema/context
  10. http://www.springframework.org/schema/context/spring-context-2.5.xsd
  11. http://www.springframework.org/schema/tx
  12. http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  13. http://www.springframework.org/schema/aop
  14. http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
  15. http://www.springframework.org/schema/task
  16. http://www.springframework.org/schema/task/spring-task-3.0.xsd ">
  17. <context:annotation-config/>
  18. <tx:annotation-driven />
  19. <context:component-scan base-package="CoreFS,com.steering" />
  20. <!-- 开启定时任务 -->
  21. <task:annotation-driven />
  22. <import resource="classpath:springjndiConfig.xml"/>
  23. <bean id="hessionService"
  24. class="CoreFS.SA01.CoreCommunicationService">
  25. </bean>
  26. <bean name="/HessianRemoting"
  27. class="CoreFS.SA01.CoreServiceExporter">
  28. <property name="service" ref="hessionService" />
  29. <property name="serviceInterface"
  30. value="CoreFS.SA06.CoreICommunicationService" />
  31. </bean>
  32. <bean id="hessionService1"
  33. class="CoreFS.SA08.CoreFileStorageImpl">
  34. </bean>
  35. <bean name="/HessianImageRemoting"
  36. class="org.springframework.remoting.caucho.HessianServiceExporter">
  37. <property name="service" ref="hessionService1" />
  38. <property name="serviceInterface"
  39. value="CoreFS.SA08.CoreFileStorage" />
  40. </bean>
  41. <bean id="tm" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  42. <property name="dataSource" ref="dataSource"/>
  43. </bean>
  44. <bean id="tm1" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  45. <property name="dataSource" ref="dataSource1"/>
  46. </bean>
  47. <bean id="tm2" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  48. <property name="dataSource" ref="dataSource2"/>
  49. </bean>
  50. </beans>