java.rmi.RemoteRemoteServerpublic class RemoteObject
extends java.lang.Object
implements java.rmi.Remote
java.rmi.* package.| Modifier and Type | Method | Description | 
|---|---|---|
| static java.rmi.Remote | toStub(java.rmi.Remote obj) | Returns the stub for the remote object. | 
public static java.rmi.Remote toStub(java.rmi.Remote obj)
                              throws java.rmi.NoSuchObjectException
obj - the remote object.java.rmi.NoSuchObjectException - if the stub for the
 remote object could not be found.