2004-04-11 08:15:00 -04:00
|
|
|
<?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>
|
|
|
|
|
2004-11-20 00:28:20 -05:00
|
|
|
<!-- Proxy for the RMI-exported ContactManager -->
|
|
|
|
<!-- COMMENTED OUT BY DEFAULT TO AVOID CONFLICTS WITH APPLICATION SERVERS
|
|
|
|
<bean id="rmiProxy" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
|
|
|
|
<property name="serviceInterface">
|
|
|
|
<value>sample.contact.ContactManager</value>
|
|
|
|
</property>
|
|
|
|
<property name="serviceUrl">
|
|
|
|
<value>rmi://${serverName}:${rmiPort}/contactManager</value>
|
|
|
|
</property>
|
|
|
|
<property name="remoteInvocationFactory">
|
|
|
|
<ref local="remoteInvocationFactory"/>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
2005-11-16 19:56:49 -05:00
|
|
|
<bean id="remoteInvocationFactory" class="org.acegisecurity.ui.rmi.ContextPropagatingRemoteInvocationFactory"/>
|
2005-05-17 23:01:40 -04:00
|
|
|
-->
|
2004-11-20 00:28:20 -05:00
|
|
|
|
|
|
|
<!-- Proxy for the HTTP-invoker-exported ContactManager -->
|
|
|
|
<!-- Spring's HTTP invoker uses Java serialization via HTTP -->
|
|
|
|
<bean id="httpInvokerProxy" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
|
|
|
|
<property name="serviceInterface">
|
|
|
|
<value>sample.contact.ContactManager</value>
|
|
|
|
</property>
|
|
|
|
<property name="serviceUrl">
|
|
|
|
<value>http://${serverName}:${httpPort}${contextPath}/remoting/ContactManager-httpinvoker</value>
|
|
|
|
</property>
|
|
|
|
<property name="httpInvokerRequestExecutor">
|
|
|
|
<ref local="httpInvokerRequestExecutor"/>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<!-- Automatically propagates ContextHolder-managed Authentication principal
|
|
|
|
and credentials to a HTTP invoker BASIC authentication header -->
|
2005-11-16 19:56:49 -05:00
|
|
|
<bean id="httpInvokerRequestExecutor" class="org.acegisecurity.context.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor"/>
|
2004-11-20 00:28:20 -05:00
|
|
|
|
2005-05-17 23:01:40 -04:00
|
|
|
<!-- Proxy for the Hessian-exported ContactManager
|
2004-04-11 08:15:00 -04:00
|
|
|
<bean id="hessianProxy" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
|
|
|
|
<property name="serviceInterface">
|
|
|
|
<value>sample.contact.ContactManager</value>
|
|
|
|
</property>
|
|
|
|
<property name="serviceUrl">
|
2004-11-20 00:28:20 -05:00
|
|
|
<value>http://${serverName}:${httpPort}${contextPath}/remoting/ContactManager-hessian</value>
|
2004-04-11 08:15:00 -04:00
|
|
|
</property>
|
|
|
|
</bean>
|
2005-05-17 23:01:40 -04:00
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Proxy for the Burlap-exported ContactManager
|
2004-04-11 08:15:00 -04:00
|
|
|
<bean id="burlapProxy" class="org.springframework.remoting.caucho.BurlapProxyFactoryBean">
|
|
|
|
<property name="serviceInterface">
|
|
|
|
<value>sample.contact.ContactManager</value>
|
|
|
|
</property>
|
|
|
|
<property name="serviceUrl">
|
2004-11-20 00:28:20 -05:00
|
|
|
<value>http://${serverName}:${httpPort}${contextPath}/remoting/ContactManager-burlap</value>
|
2004-04-11 08:15:00 -04:00
|
|
|
</property>
|
|
|
|
</bean>
|
2005-05-17 23:01:40 -04:00
|
|
|
-->
|
|
|
|
|
2004-04-11 08:15:00 -04:00
|
|
|
</beans>
|