remoting-servlet.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "https://www.springframework.org/dtd/spring-beans.dtd">
  3. <!--
  4. - Contacts web application
  5. -->
  6. <beans>
  7. <!-- RMI exporter for the ContactManager -->
  8. <!-- This could just as easily have been in
  9. applicationContext-common-business.xml, because it doesn't rely on
  10. DispatcherServlet or indeed any other HTTP services. It's in this
  11. application context simply for logical placement with other
  12. remoting exporters. -->
  13. <!-- COMMENTED OUT BY DEFAULT TO AVOID CONFLICTS WITH APPLICATION SERVERS
  14. <bean id="contactManager-rmi" class="org.springframework.remoting.rmi.RmiServiceExporter">
  15. <property name="service"><ref bean="contactManager"/></property>
  16. <property name="serviceInterface">
  17. <value>sample.contact.ContactManager</value>
  18. </property>
  19. <property name="serviceName"><value>contactManager</value></property>
  20. <property name="registryPort"><value>1099</value></property>
  21. </bean>
  22. -->
  23. <!-- HTTP invoker exporter for the ContactManager -->
  24. <!-- Spring's HTTP invoker uses Java serialization via HTTP -->
  25. <bean name="/ContactManager-httpinvoker" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
  26. <property name="service" ref="contactManager"/>
  27. <property name="serviceInterface" value="sample.contact.ContactManager"/>
  28. </bean>
  29. <!-- Hessian exporter for the ContactManager -->
  30. <!-- Hessian is a slim binary HTTP remoting protocol -->
  31. <!--
  32. <bean name="/ContactManager-hessian" class="org.springframework.remoting.caucho.HessianServiceExporter">
  33. <property name="service" ref="contactManager"/>
  34. <property name="serviceInterface" value="sample.contact.ContactManager"/>
  35. </bean>
  36. -->
  37. <!-- Burlap exporter for the ContactManager -->
  38. <!-- Burlap is a slim XML-based HTTP remoting protocol -->
  39. <!--
  40. <bean name="/ContactManager-burlap" class="org.springframework.remoting.caucho.BurlapServiceExporter">
  41. <property name="service" ref="contactManager"/>
  42. <property name="serviceInterface" value="sample.contact.ContactManager"/>
  43. </bean>
  44. -->
  45. </beans>