remoting-servlet.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. xsi:schemaLocation="
  6. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
  7. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
  8. http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
  9. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
  10. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
  11. <context:annotation-config/>
  12. <tx:annotation-driven />
  13. <context:component-scan base-package="CoreFS" />
  14. <import resource="classpath:springjndiConfig.xml"/>
  15. <bean id="hessionService"
  16. class="CoreFS.SA01.CoreCommunicationService">
  17. </bean>
  18. <bean name="/HessianRemoting"
  19. class="CoreFS.SA01.CoreServiceExporter">
  20. <property name="service" ref="hessionService" />
  21. <property name="serviceInterface"
  22. value="CoreFS.SA06.CoreICommunicationService" />
  23. </bean>
  24. <bean id="hessionService1"
  25. 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"
  31. value="CoreFS.SA08.CoreFileStorage" />
  32. </bean>
  33. <bean id="tm" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  34. <property name="dataSource" ref="dataSource"/>
  35. </bean>
  36. <bean id="tm1" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  37. <property name="dataSource" ref="dataSource1"/>
  38. </bean>
  39. </beans>