您的位置:首页 > 其它

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();
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: