name
in this registry with the supplied remote reference. If there is an existing binding for the specified name
, it is discarded.
@param name the name to associate with the remote reference
@param obj a reference to a remote object (usually a stub)
@throws RemoteException if remote communication with theregistry failed; if exception is a ServerException
containing an AccessException
, then the registry denies the caller access to perform this operation (if originating from a non-local host, for example)
@throws AccessException if this registry is local and it deniesthe caller access to perform this operation
@throws NullPointerException if name
isnull
, or if obj
is null
Name
to rebind, may not be null
@param o an object to bind with the name, may be null
@throws NamingException if an error occurs.
name
to obj
. If the attributes parameter is non-null, the attributes it specifies become the only attributes of the binding. If the attributes parameter is null but obj
is an instance of DirContext
then the attributes of obj
become the only attributes of the binding. If the attributes
parameter is null and obj
is not an instance of DirContext
then any attributes of the previous binding remain.
If a schema defines mandatory attributes for the binding but they are not all present this method throws an InvalidAttributesException
.
This method throws any NamingException
that occurs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|