RMI - 远程对象,rmiregistry

RMI - remote object , rmiregistry

每个远程对象都必须在 rmiregistry 中注册是真的吗?我们能否从 rmiregistry 获取一个对象,调用它的方法,并因此获得对另一个未在 rmiregistry 中注册的远程对象的引用(不是序列化副本)?

Is it true that every remote object must be registered in rmiregistry?

没有

Can we get one object from rmiregistry , call method on it and as a result get a reference ( not a serialized copy ) to another remote object , which isn't registred in rmiregistry ?

是的。

远程方法可以return远程对象。注册表只是一个 bootstrap 机制让你开始,即为你提供一个初始存根。之后你可以做任何你喜欢的事情。