RMI使用中
2008-08-05 15:28
89 查看
启动RMI注册并注册远程对象时的注意事项:
可以使用如下两种方式
LocateRegistry.createRegistry(51099);
try {
Naming.rebind("//localhost:51099/TalkServer", remote);
} catch (Exception e) {
e.printStackTrace();
}
或
Registry re=LocateRegistry.createRegistry(51099);
try {
re.rebind("TalkServer", remote);
} catch (Exception e) {
e.printStackTrace();
}
可以使用如下两种方式
LocateRegistry.createRegistry(51099);
try {
Naming.rebind("//localhost:51099/TalkServer", remote);
} catch (Exception e) {
e.printStackTrace();
}
或
Registry re=LocateRegistry.createRegistry(51099);
try {
re.rebind("TalkServer", remote);
} catch (Exception e) {
e.printStackTrace();
}
相关文章推荐
- 系统间通信方式之(Java之RMI初步使用详解)(八)
- RMI使用学习 小结
- 【RMI】使用Java反射机制实现RMI
- 使用 RMI + ZooKeeper 实现远程调用框架
- 使用 RMI + ZooKeeper 实现远程调用框架
- spring整合rmi 如何使用安全策略
- java使用rmi传输大文件示例分享
- 使用spring发布和访问RMI服务
- 使用 RMI + ZooKeeper 实现远程调用
- RMI与Hession使用
- EJB2.0系统中什么时候使用messaging或者RMI/IIOP
- RMI 使用感想
- java分布式对象(RMI+部署使用RMI的程序)
- RMI的简易使用方法
- ehcache在windows下使用RMI同步时出现的问题
- 使用 RMI + ZooKeeper 实现远程调用框架
- JBOSS中使用RMI不能连接服务器的原因
- spring与rmi结合使用
- java中使用rmi进行远程方法调用
- 使用 RMI + ZooKeeper 实现远程调用框架