| 
 | Oracle | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweblogic.rmi.registry.LocateRegistry
public final class LocateRegistry
This class is provided for compatibility with the java.rmi.* package.
 
The registry returned is a co-located object that invokes methods on the server-side JNDI implementation.
| Field Summary | 
|---|
| Fields inherited from interface java.rmi.registry.Registry | 
|---|
| REGISTRY_PORT | 
| Method Summary | |
|---|---|
|  void | bind(String name,
     Remote o)Binds a name to a remote object in the registry. | 
| static String | clearURL(weblogic.protocol.ServerURL url) | 
| static Registry | createRegistry(int port)Returns a WebLogic Server registry located on localhostat the specified port. | 
| static Registry | getRegistry()Returns the WebLogic Server registry located on localhost. | 
| static Registry | getRegistry(int port)Returns the WebLogic Server registry located on localhostat the specified port. | 
| static Registry | getRegistry(String name)Returns the WebLogic Server registry located on the specified host. | 
| static Registry | getRegistry(String name,
            int port)Returns the WebLogic Server registry located on the specified host and port. | 
| static weblogic.protocol.ServerURL | getServerURL(String name) | 
| static String | getURL(weblogic.protocol.ServerURL url) | 
|  String[] | list()Returns an array of names (URLs) currently bound into the WebLogic Server registry. | 
|  Remote | lookup(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(String name,
       Remote o)Rebinds a name to a remote object. | 
|  void | unbind(String name)Unbinds a name from the registry. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public Remote lookup(String name)
              throws RemoteException,
                     NotBoundException,
                     AccessException
lookup in interface Registryname - the name of remote object to locate.
RemoteException - if there is an error with the remote object.
AccessException - if there is an error accessing the remote object.
NotBoundException - if the specified name is not bound.
public void bind(String name,
                 Remote o)
          throws RemoteException,
                 AlreadyBoundException,
                 AccessException
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 Registryname - the name for the Remote object.impl - the remote object.
RemoteException - if there is an error with the remote object.
AlreadyBoundException - if the name is already bound to another object.
AccessException - if there is an error accessing the remote object.
public void unbind(String name)
            throws RemoteException,
                   NotBoundException,
                   AccessException
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 Registryname - the name for the Remote object.
RemoteException - if there is an error with the Remote object.
AccessException - if there is an error accessing the Remote object.
NotBoundException - if the specified name is not bound.
public void rebind(String name,
                   Remote o)
            throws RemoteException,
                   AccessException
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 Registryname - the name for the remote object.obj - the remote object.
RemoteException - if there is an error with the remote object.
AccessException - if there is an error accessing the remote object.
public String[] list()
              throws RemoteException,
                     AccessException
list in interface Registryname - the URL of the registry.
RemoteException - if there is an error with the remote object.
AccessException - if there is an error accessing the remote object.
public static Registry getRegistry()
                            throws RemoteException
localhost.
 Provides compatibility with the java.rmi.* 
 package.
RemoteException - if there is an error with the remote object.
public static Registry getRegistry(int port)
                            throws RemoteException
localhost
 at the specified port.
 Provides compatibility with the java.rmi.* 
 package.
port - the port at which WebLogic registry is located.
RemoteException - if there is an error with the remote object.
public static Registry getRegistry(String name)
                            throws RemoteException,
                                   UnknownHostException
java.rmi.* 
 package.
name - the host where the registry is located.
UnknownHostException - if the host specified by the URL is unknown.
RemoteException - if there is an error with the remote object.
public static Registry getRegistry(String name,
                                   int port)
                            throws RemoteException,
                                   UnknownHostException
java.rmi.* 
 package.
name - the name of host where the registry is located.port - the port where the registry is located.
UnknownHostException - if the host specified by the URL is unknown.
RemoteException - if there is an error with the remote object.
public static Registry createRegistry(int port)
                               throws RemoteException
localhost
 at the specified port.
 Provides compatibility with the java.rmi.* 
 package.
port - the port where the registry is located.
RemoteException - if there is an error with the remote object.public static String getURL(weblogic.protocol.ServerURL url)
public static String clearURL(weblogic.protocol.ServerURL url)
                       throws MalformedURLException
MalformedURLException
public static weblogic.protocol.ServerURL getServerURL(String name)
                                                throws MalformedURLException
MalformedURLException| 
 | Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 2008 Oracle | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||