39 lines
1.4 KiB
XML
39 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
|
|
|
<!--
|
|
- Contacts web application
|
|
- Client application context
|
|
- $Id$
|
|
-->
|
|
|
|
<beans>
|
|
|
|
<!-- Resolves ${...} placeholders from client.properties -->
|
|
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
|
<property name="location"><value>client.properties</value></property>
|
|
</bean>
|
|
|
|
<!-- Proxy for the Hessian-exported ContactManager -->
|
|
<!-- Hessian is a slim binary HTTP remoting protocol -->
|
|
<bean id="hessianProxy" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
|
|
<property name="serviceInterface">
|
|
<value>sample.contact.ContactManager</value>
|
|
</property>
|
|
<property name="serviceUrl">
|
|
<value>http://${serverName}:${httpPort}${contextPath}/caucho/ContactManager-hessian</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- Proxy for the Burlap-exported ContactManager -->
|
|
<!-- Burlap is a slim XML-based HTTP remoting protocol -->
|
|
<bean id="burlapProxy" class="org.springframework.remoting.caucho.BurlapProxyFactoryBean">
|
|
<property name="serviceInterface">
|
|
<value>sample.contact.ContactManager</value>
|
|
</property>
|
|
<property name="serviceUrl">
|
|
<value>http://${serverName}:${httpPort}${contextPath}/caucho/ContactManager-burlap</value>
|
|
</property>
|
|
</bean>
|
|
|
|
</beans> |