参考:http://blog.csdn.net/ktyl2000/article/details/4485896
实现:调用公网ip注册的远程对象
实现:调用公网ip注册的远程对象
外网IP:x.x.x.102 port:9000/9010 内网IP: 192.168.2.20 port:9000/9010(即将内网中的地址映射为公网ip)
所要注意的问题:
rmi使用两类端口,一种是服务注册与查找服务端口,另一种是数据传输端口。此处9000为服务注册和查找服务端口,9010为数据传输端口
spring rmi 配置:
spring rmi server端配置如下:
<bean id="serviceExporter" class="org.springframework.remoting.rmi.RmiServiceExporter">
<property name="serviceName" value="pushService"/>
<property name="service" ref="notificationPushService"/>
<property name=