remoting-servlet.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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"
  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. <context:annotation-config />
  16. <tx:annotation-driven />
  17. <context:component-scan base-package="CoreFS" />
  18. <import resource="classpath:springjndiConfig.xml" />
  19. <bean id="hessionService" class="CoreFS.SA01.CoreCommunicationService">
  20. </bean>
  21. <bean name="/HessianRemoting" class="CoreFS.SA01.CoreServiceExporter">
  22. <property name="service" ref="hessionService" />
  23. <property name="serviceInterface" value="CoreFS.SA06.CoreICommunicationService" />
  24. </bean>
  25. <bean id="hessionService1" class="CoreFS.SA08.CoreFileStorageImpl">
  26. </bean>
  27. <bean name="/HessianImageRemoting"
  28. class="org.springframework.remoting.caucho.HessianServiceExporter">
  29. <property name="service" ref="hessionService1" />
  30. <property name="serviceInterface" value="CoreFS.SA08.CoreFileStorage" />
  31. </bean>
  32. <bean id="tm"
  33. class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  34. <property name="dataSource" ref="dataSource" />
  35. </bean>
  36. <bean id="tm1"
  37. class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  38. <property name="dataSource" ref="dataSource1" />
  39. </bean>
  40. <bean id="tm2"
  41. class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  42. <property name="dataSource" ref="dataSource2" />
  43. </bean>
  44. </beans>