java - Export rmi on virtual machine -
i want export java.rmi on virtual machine,
<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"/> <property name="registryhost" value="127.0.0.1"/>
i connection refused 127.0.0.1
hosts file :
127.0.0.1 localhost.localdomain localhost
10.0.2.15 compname
is problem vm ?
change networking mode of virtual machine "bridged" in same network host. java rmi not designed work nat, you'll have trouble default networking mode.
after that, change registryhost
ip address of vm, 127.0.0.1 can accessed within machine.
(there other ways make work easiest explain)
Comments
Post a Comment