Spring配置之RMI
来源:互联网 发布:linux 守护进程程序 编辑:程序博客网 时间:2024/05/22 10:43
<?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">
<!-- spring rmi服务端配置 -->
<bean id="cdeskService" class="com.cdesk.service.impl.CDeskService"></bean>
<bean id="rmiServiceExporter_order" class="org.springframework.remoting.rmi.RmiServiceExporter">
<property name="service" ref="cdeskService" />
<!-- 定义服务名 -->
<property name="serviceName" value="cdesk" />
<!--接口类名 -->
<property name="serviceInterface" value="com.cdesk.service.ICDeskService" />
<!-- 端口号 -->
<property name="registryPort" value="8888"></property>
<!-- <property name="registryHost" value="localhost"></property> -->
</bean>
<!-- spring rmi客户端配置 -->
<!-- 客户端的接口和服务端借口必须保持一模一样 -->
<bean id="cdeskProxy" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- baseService是调用服务端serviceName的value -->
<property name="serviceUrl" value="rmi://192.168.0.10:8888/cdesk"></property>
<!-- service接口 -->
<property name="serviceInterface" value="com.cdesk.service.ICDeskService"></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">
<!-- spring rmi服务端配置 -->
<bean id="cdeskService" class="com.cdesk.service.impl.CDeskService"></bean>
<bean id="rmiServiceExporter_order" class="org.springframework.remoting.rmi.RmiServiceExporter">
<property name="service" ref="cdeskService" />
<!-- 定义服务名 -->
<property name="serviceName" value="cdesk" />
<!--接口类名 -->
<property name="serviceInterface" value="com.cdesk.service.ICDeskService" />
<!-- 端口号 -->
<property name="registryPort" value="8888"></property>
<!-- <property name="registryHost" value="localhost"></property> -->
</bean>
<!-- spring rmi客户端配置 -->
<!-- 客户端的接口和服务端借口必须保持一模一样 -->
<bean id="cdeskProxy" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<!-- baseService是调用服务端serviceName的value -->
<property name="serviceUrl" value="rmi://192.168.0.10:8888/cdesk"></property>
<!-- service接口 -->
<property name="serviceInterface" value="com.cdesk.service.ICDeskService"></property>
</bean>
</beans>
阅读全文
0 0
- Spring配置之RMI
- Spring配置RMI服务
- Spring rmi配置
- 使用spring配置RMI
- spring配置rmi
- Spring Rmi配置
- Spring之RMI Service
- Spring之RMI Client
- ehcache之RMI集群配置
- Spring中合理的配置RMI
- Spring RMI配置多个服务
- (一) spring 远程服务之rmi
- spring RMI
- Spring rmi
- rmi spring
- Spring RMI
- spring rmi
- Spring RMI
- POJ 3255 Roadblocks 最短路Dijkstra+堆优化
- poj 3723 最大生成树
- poj 2139 Six Degrees of Cowvin Bacon 最短路bellman 多源最短路径 (一次AC)
- Codeforces Round #329 (Div. 2) A. 2Char 字符串+暴力
- poj 3259 Wormholes 最短路bellman 题意转化很重要
- Spring配置之RMI
- poj 2456 Aggressive cows 整数二分写法 模板题
- poj 3104 Drying 二分搜索--查找最小yes值
- poj 3111 K Best 二分搜索 最大化平均值
- POj 3258 River Hopscotch 二分搜索 最大化最小值
- poj 2674 Linear world 弹性碰撞 升级的蚂蚁
- poj 2785 4 Values whose Sum is 0
- Codeforces Round #324 (Div. 2) A. Olesya and Rodion 构造数字 思维题
- Codeforces Round #324 (Div. 2) B. Kolya and Tanya 思维题 数论