|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
weblogic.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 Registry |
createRegistry(int port) Returns a WebLogic Server registry located on localhost at 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 localhost at 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. |
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
lookup
in interface Registry
name
- 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
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 Registry
name
- the name for the Remote object.o
- 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
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 Registry
name
- 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
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 Registry
name
- the name for the remote object.o
- 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
list
in interface 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
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
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.
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |