clientContext.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3. <!--
  4. - Contacts web application
  5. - Client application context
  6. - $Id$
  7. -->
  8. <beans>
  9. <!-- Resolves ${...} placeholders from client.properties -->
  10. <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  11. <property name="location"><value>client.properties</value></property>
  12. </bean>
  13. <!-- Proxy for the Hessian-exported ContactManager -->
  14. <!-- Hessian is a slim binary HTTP remoting protocol -->
  15. <bean id="hessianProxy" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
  16. <property name="serviceInterface">
  17. <value>sample.contact.ContactManager</value>
  18. </property>
  19. <property name="serviceUrl">
  20. <value>http://${serverName}:${httpPort}${contextPath}/caucho/ContactManager-hessian</value>
  21. </property>
  22. </bean>
  23. <!-- Proxy for the Burlap-exported ContactManager -->
  24. <!-- Burlap is a slim XML-based HTTP remoting protocol -->
  25. <bean id="burlapProxy" class="org.springframework.remoting.caucho.BurlapProxyFactoryBean">
  26. <property name="serviceInterface">
  27. <value>sample.contact.ContactManager</value>
  28. </property>
  29. <property name="serviceUrl">
  30. <value>http://${serverName}:${httpPort}${contextPath}/caucho/ContactManager-burlap</value>
  31. </property>
  32. </bean>
  33. </beans>