![]() |
Overview Recreates a name-object binding in a naming context even if the name is already bound in the naming context. Original interface CosNaming::NamingContext Interface Exceptions CORBA standard exceptions and the following user exceptions:
- CosNaming::NamingContext::CannotProceed
- CosNaming::NamingContext::InvalidName
- CosNaming::NamingContext::NotFound
Intended Usage
This operation is intended to be used by client applications. It is not typically overridden.
This operation recreates a name binding in a naming context, even if the name is already bound in the naming context. Rebinding a name and object into a naming context recreates a name-object association relative to the target naming context. Naming contexts that are bound using rebind do not participate in name resolution process when compound names are resolved.
If an object is already bound with the same name, the bound object is replaced by the passed argument obj. If the name-object binding does not exist, the rebind method behaves like the bind method.
As a developer, you can use the rebind method to replace an existing binding. You can use the rebind operation in place of the unbind and bind methods.
IDL Syntax
void rebind( in CosNaming::Name name, in Object obj);
Input parameters
- name
- The name to be re-bound.
- obj
- The Object to be re-bound.
Return values
None.
Example
See the CosNaming Usage example for BindingIterator::destroy.