【发布时间】:2013-07-16 11:23:26
【问题描述】:
我已经导出了一些 rmi 服务。
<bean id="entityRmiServiceExporter" class="org.springframework.remoting.rmi.RmiServiceExporter">
<property name="serviceName" value="entityService"/>
<property name="service" ref="entityServiceImpl"/>
<property name="serviceInterface" value="IEntityService"/>
<property name="registryPort" value="1099"/>
</bean>
在我的机器上运行时端点是 127.0.0.1:1099 但在 VM 上是 10.0.2.15:1099 ,IP 地址。
RmiServiceExporter:276 - Binding service 'entityService' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[127.0.0.1:1099](local),objID:[0:0:0, 0]]]]
在哪里可以手动配置?
【问题讨论】: