REGISTRY_PORT
Modifier and Type | Method and Description |
---|---|
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.
|
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.