123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?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 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>
- -->
-
- <!-- Automatically propagates ContextHolder contents when using the RMI proxy -->
- <bean id="remoteInvocationFactory" class="net.sf.acegisecurity.ui.rmi.ContextPropagatingRemoteInvocationFactory"/>
-
- <!-- 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 -->
- <bean id="httpInvokerRequestExecutor" class="net.sf.acegisecurity.context.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor"/>
- <!-- 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}/remoting/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}/remoting/ContactManager-burlap</value>
- </property>
- </bean>
- </beans>
|