<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<!-- cdesk -->
<bean id="rmiFactoryBean_cdesk" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/cdesk" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.cdesk.service.ICDeskService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
<!-- 基础信息 -->
<bean id="rmiFactoryBean_base" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/base" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.base.service.IBaseService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
<!-- 文件上传下载模块 -->
<bean id="rmiFactoryBean_download" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/download" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.download.service.IDownloadService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
<!-- 权限模块 -->
<bean id="rmiFactoryBean_permission" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/permission" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.permiss.service.IPermissionService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
<!-- 权限模块 -->
<bean id="rmiFactoryBean_http" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/http" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.http.service.IHttpRequestService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<!-- cdesk -->
<bean id="rmiFactoryBean_cdesk" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/cdesk" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.cdesk.service.ICDeskService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
<!-- 基础信息 -->
<bean id="rmiFactoryBean_base" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/base" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.base.service.IBaseService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
<!-- 文件上传下载模块 -->
<bean id="rmiFactoryBean_download" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/download" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.download.service.IDownloadService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
<!-- 权限模块 -->
<bean id="rmiFactoryBean_permission" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/permission" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.permiss.service.IPermissionService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
<!-- 权限模块 -->
<bean id="rmiFactoryBean_http" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- 远程服务名 -->
<property name="serviceUrl" value="rmi://localhost:8888/http" />
<!-- 本地接口 -->
<property name="serviceInterface" value="com.http.service.IHttpRequestService" />
<property name="lookupStubOnStartup" value="false" />
<property name="refreshStubOnConnectFailure" value="true" />
<property name="cacheStub" value="false"></property>
</bean>
</beans>