java.lang.Object | +----java.rmi.Naming
This is the bootstrap mechanism for obtaining references to remote
objects based on Uniform Resource Locator (URL) syntax. The URL
for a remote object is specified using the usual host, port and
name:
rmi://host:port/name
host = host name of registry (defaults to current host)
port = port number of registry (defaults to the registry port number)
name = name for remote object
public static Remote lookup(String name) throws NotBoundException, MalformedURLException, UnknownHostException, RemoteException
public static void bind(String name,
Remote obj) throws AlreadyBoundException, MalformedURLException, UnknownHostException, RemoteException
public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException, UnknownHostException
public static void rebind(String name,
Remote obj) throws RemoteException, MalformedURLException, UnknownHostException
public static String[] list(String name) throws RemoteException, MalformedURLException, UnknownHostException
![]()