Topic: RMI的问题

  Print this page

1.RMI的问题 Copy to clipboard
Posted by: 汤神
Posted on: 2003-09-07 13:39

如果不用RMI registry , server 怎样把它的ObjID传给 client

2.Re:RMI的问题 [Re: 汤神] Copy to clipboard
Posted by: hut
Posted on: 2003-09-08 18:13

在你的Server,它实现一个远程对象的实例,然后把它bind到RMI Naming Service上

RemoteObject server = new RemoteObject ();

Registry reg = LocateRegistry.createRegistry(1099);
reg.bind(NAME, server);


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923