或者在0.3上试试
LocateRegistry.getRegistry("192.168.0.1", 1099).rebind("HelloServer",obj);
LocateRegistry.getRegistry("192.168.0.1", 1099).rebind("HelloServer",obj);
解决方案 »
- struts2框架的传值问题???
- java中的通信问题
- 怎样做一个货品进出库的Java+jsp+mysql的小系统?
- 一个简单的时间取值问题
- stuts+hiberbate 实现注册
- webservice 的作业 各位大哥帮看看- JDeveloper SOAP/JDBC/XML Application
- SSH框架搭建,spring的beans.xml报错,我看不出什么错误,求高手解答!
- Hibernate中的一个数据库问题
- 怎样才能在JBuilder中使用各种汉字字体啊?
- 據説上海:外地的需要有大学文凭,不是公司需要,是政策必须?
- 怎样用Optimizeit发现踪内存泄漏?
- cmp如何实现分业和组合查询。
这个是我从API文档上摘下来的,是rmiregistry的介绍
好像rmiregistry不能接受远程机器的绑定。
我试过你上面的方法,不行,而且那个只能得到本机上的注册表操作。
//host:port/name where host is the host (remote or local)where the registry is located因此应该支持remote host,你的代码应该也没问题, 我现在只有1台机器,没环境试
后来查了查, 看到这段:
rebind:exception AccessException if this operation is not permitted (if originating from a non-local host, for example)
有时间再仔细看看, 楼主有啥心得到时也共享一下.