mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
to using SSL when needed. Restructured exports of AVM specific apis to authenticate remotely and pass the ticket with each remote service call. These required some changes to jndi-client and even to the web-client which uses the AVM remote interface within the Alfresco server. Oh, the point of this is that since I'm writing some CLTs, I might as well do them correctly; we'll need the option of security sooner rather than later. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4489 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
57 lines
2.0 KiB
XML
57 lines
2.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN//EN"
|
|
"http://www.springframework.org/dtd/spring-beans.dtd">
|
|
|
|
<beans>
|
|
<!-- Remote authentication service. -->
|
|
<bean id="authenticationService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
|
|
<property name="serviceUrl">
|
|
<value>rmi://localhost:1313/authentication</value>
|
|
</property>
|
|
<property name="serviceInterface">
|
|
<value>org.alfresco.service.cmr.security.AuthenticationService</value>
|
|
</property>
|
|
<property name="refreshStubOnConnectFailure">
|
|
<value>true</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- Remote interface for AVM. -->
|
|
<bean id="avmRemote" class="org.alfresco.repo.avm.clt.AVMRemoteImpl">
|
|
<property name="avmRemoteTransport">
|
|
<ref bean="avmRemoteTransport"/>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- RMI Proxy bean for avmRemoteTransport -->
|
|
<bean id="avmRemoteTransport" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
|
|
<property name="serviceUrl">
|
|
<value>rmi://localhost:1313/avm</value>
|
|
</property>
|
|
<property name="serviceInterface">
|
|
<value>org.alfresco.repo.avm.AVMRemoteTransport</value>
|
|
</property>
|
|
<property name="refreshStubOnConnectFailure">
|
|
<value>true</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="avmSyncService" class="org.alfresco.repo.avm.clt.AVMSyncServiceClient">
|
|
<property name="avmSyncServiceTransport">
|
|
<ref bean="avmSyncServiceTransport"/>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="avmSyncServiceTransport" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
|
|
<property name="serviceUrl">
|
|
<value>rmi://localhost:1313/avmsync</value>
|
|
</property>
|
|
<property name="serviceInterface">
|
|
<value>org.alfresco.service.cmr.avmsync.AVMSyncServiceTransport</value>
|
|
</property>
|
|
<property name="refreshStubOnConnectFailure">
|
|
<value>true</value>
|
|
</property>
|
|
</bean>
|
|
</beans>
|