java.rmi.registry.Registry, java.rmi.Remotepublic final class LocateRegistry
extends java.lang.Object
implements java.rmi.registry.Registry
java.rmi.* package.
 The registry returned is a co-located object that invokes methods on the server-side JNDI implementation.
| Modifier and Type | Method | Description | 
|---|---|---|
| void | bind(java.lang.String name,
    java.rmi.Remote o) | Binds a name to a remote object in the registry. | 
| static java.rmi.registry.Registry | createRegistry(int port) | Returns a WebLogic Server registry located on  localhostat the specified port. | 
| static java.rmi.registry.Registry | getRegistry() | Returns the WebLogic Server registry located on  localhost. | 
| static java.rmi.registry.Registry | getRegistry(int port) | Returns the WebLogic Server registry located on  localhostat the specified port. | 
| static java.rmi.registry.Registry | getRegistry(java.lang.String name) | Returns the WebLogic Server registry located on the specified host. | 
| static java.rmi.registry.Registry | getRegistry(java.lang.String name,
           int port) | Returns the WebLogic Server registry located on the specified host
 and port. | 
| java.lang.String[] | list() | Returns an array of names (URLs) currently bound into the
 WebLogic Server registry. | 
| java.rmi.Remote | lookup(java.lang.String name) | Returns a remote object -- an initialized instance of a
 stub or the instance of a co-located object when the object is
 found in the weblogic.rmi name space. | 
| void | rebind(java.lang.String name,
      java.rmi.Remote o) | Rebinds a name to a remote object. | 
| void | unbind(java.lang.String name) | Unbinds a name from the registry. | 
public java.rmi.Remote lookup(java.lang.String name)
                       throws java.rmi.RemoteException,
                              java.rmi.NotBoundException
lookup in interface java.rmi.registry.Registryname - the name of remote object to locate.java.rmi.RemoteException - if there is an error with the remote object.java.rmi.AccessException - if there is an error accessing the remote object.java.rmi.NotBoundException - if the specified name is not bound.public void bind(java.lang.String name,
                 java.rmi.Remote o)
          throws java.rmi.RemoteException,
                 java.rmi.AlreadyBoundException
The name may be a full URL that follows conventional RMI naming procedures or a name for the object itself. Use the following naming convention within the Weblogic registry:
t3://localhost:7001/nameForRemoteObjectwhere
t3://localhost:7001 is the default URL.bind in interface java.rmi.registry.Registryname - the name for the Remote object.o - the remote object.java.rmi.RemoteException - if there is an error with the remote object.java.rmi.AlreadyBoundException - if the name is already bound to another object.java.rmi.AccessException - if there is an error accessing the remote object.public void unbind(java.lang.String name)
            throws java.rmi.RemoteException,
                   java.rmi.NotBoundException
The name may be a full URL that follows conventional RMI naming procedures or a name for the object itself. Use the following naming convention within the Weblogic registry:
t3://localhost:7001/nameForRemoteObjectwhere
t3://localhost:7001 is the default URL.unbind in interface java.rmi.registry.Registryname - the name for the Remote object.java.rmi.RemoteException - if there is an error with the Remote object.java.rmi.AccessException - if there is an error accessing the Remote object.java.rmi.NotBoundException - if the specified name is not bound.public void rebind(java.lang.String name,
                   java.rmi.Remote o)
            throws java.rmi.RemoteException
The name may be a full URL that follows conventional RMI naming procedures or a name for the object itself. Use the following naming convention within the Weblogic registry:
t3://localhost:7001/nameForRemoteObjectwhere
t3://localhost:7001 is the default URL.rebind in interface java.rmi.registry.Registryname - the name for the remote object.o - the remote object.java.rmi.RemoteException - if there is an error with the remote object.java.rmi.AccessException - if there is an error accessing the remote object.public java.lang.String[] list()
                        throws java.rmi.RemoteException
list in interface java.rmi.registry.Registryjava.rmi.RemoteException - if there is an error with the remote object.java.rmi.AccessException - if there is an error accessing the remote object.public static java.rmi.registry.Registry getRegistry()
                                              throws java.rmi.RemoteException
localhost.
 Provides compatibility with the java.rmi.* 
 package.java.rmi.RemoteException - if there is an error with the remote object.public static java.rmi.registry.Registry getRegistry(int port)
                                              throws java.rmi.RemoteException
localhost
 at the specified port.
 Provides compatibility with the java.rmi.* 
 package.port - the port at which WebLogic registry is located.java.rmi.RemoteException - if there is an error with the remote object.public static java.rmi.registry.Registry getRegistry(java.lang.String name)
                                              throws java.rmi.RemoteException
java.rmi.* 
 package.name - the host where the registry is located.java.rmi.UnknownHostException - if the host specified by the URL is unknown.java.rmi.RemoteException - if there is an error with the remote object.public static java.rmi.registry.Registry getRegistry(java.lang.String name,
                                                     int port)
                                              throws java.rmi.RemoteException
java.rmi.* 
 package.name - the name of host where the registry is located.port - the port where the registry is located.java.rmi.UnknownHostException - if the host specified by the URL is unknown.java.rmi.RemoteException - if there is an error with the remote object.public static java.rmi.registry.Registry createRegistry(int port)
                                                 throws java.rmi.RemoteException
localhost
 at the specified port.
 Provides compatibility with the java.rmi.* 
 package.port - the port where the registry is located.java.rmi.RemoteException - if there is an error with the remote object.