remoting-servlet.xml 2.4 KB

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