[Enterprise Extensions only]

NamingContext::bind_context

Overview Creates a naming context binding.
Original interface CosNaming::NamingContext Interface
Exceptions CORBA standard exceptions and the following user exceptions:
  • CosNaming::NamingContext::AlreadyBound
  • 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 creates a naming context binding. Binding a name and a naming context object into a naming context creates a name-object association relative to the target naming context. Naming contexts that are bound using bind_context participate in name resolution when compound names are resolved. This operation is used to extend the naming tree by binding sub-contexts to contexts. Like an object, a naming context can be bound, using bind_context, to multiple names in a context or across multiple contexts. Within a context, the names bound to a context must be unique. That is, only one context can be bound to a particular name in a naming context.

IDL Syntax

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

Input parameters

name
The name for the binding.

Return values

None.

Example

See the CosNaming Usage example for BindingIterator::destroy.