| 发表于:2007-10-19 10:40:41 楼主 |
在rmi的例子中, system.setsecuritymanager ( new rmisecuritymanager() ); helloimpl obj = new helloimpl("helloserver"); naming.rebind("helloserver", obj); 然后通过 rmic hello.helloimpl start rmiregistry java -djava.security.policy=my.policy hello.helloimpl 发布, 客户端使用naming.lookup("helloserver");可以查到。 使用jndi是否也可以做到呢? |
|
|
|
|