|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Registry
provides a simple interface for binding and
retrieving remote object references by name.
Method Summary | |
void |
bind(java.lang.String name,
Proxy proxy)
Binds the specified name to a remote object. |
Proxy |
lookup(java.lang.String name)
Returns a proxy for the remote object associated with the specified name |
void |
unbind(java.lang.String name)
Removes the binding for the specified name |
Method Detail |
public Proxy lookup(java.lang.String name) throws java.rmi.NotBoundException, java.rmi.RemoteException
name
- the name the proxy is bound undername
java.rmi.NotBoundException
- if name is not bound
java.rmi.RemoteException
- if the registry could not be contacted
bind
public void bind(java.lang.String name,
Proxy proxy)
throws java.rmi.AccessException,
java.rmi.AlreadyBoundException,
java.rmi.RemoteException
- Binds the specified name to a remote object.
- Parameters:
name
- the name of the bindingproxy
- the proxy for the remote object- Throws:
java.rmi.AccessException
- if the caller doesn't have permission to
bind the objectjava.rmi.AlreadyBoundException
- if name
is already boundjava.rmi.RemoteException
- if the registry could not be contacted
unbind
public void unbind(java.lang.String name)
throws java.rmi.AccessException,
java.rmi.NotBoundException,
java.rmi.RemoteException
- Removes the binding for the specified name
- Parameters:
name
- the name of the binding- Throws:
java.rmi.AccessException
- if the caller doesn't have permission to unbind
the objectjava.rmi.NotBoundException
- if name is not bound
java.rmi.RemoteException
- if the registry could not be contacted
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.