|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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 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. |
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 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, 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 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, 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 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, 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 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, AccessException
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, 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
|
Copyright 1996, 2011, 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 Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |