[Enterprise Extensions only]

NamingContext::rebind_context

Overview Recreates a name-naming context binding in a target naming context, even if the name is already bound in the target 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 binding to a naming context, even if the name is already bound in the naming context. Re-binding a name and a naming context object into a naming context recreates a name-object association relative to the target naming context. Naming contexts that are bound using rebind_context participate in name resolution when compound names are resolved.

The rebind_context operation is used to bind or replace a subcontext. If a context is already bound in a context, the bind operation raises the AlreadyBound exception. However, the rebind method replaces the bound object with the passed object.

IDL Syntax

  void rebind_context(
    in CosNaming::Name name,
    in CosNaming::NamingContext naming_context);

Input parameters

name
The name to be re-bound.
naming_context
The NamingContext object to be re-bound to the name.

Return values

None.

Example

See the CosNaming Usage example for BindingIterator::destroy.