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 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.

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.


Related reference
CosNaming in the naming service



Searchable topic ID:   rcor_cnsnc8
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_cnsnc8.html

Library | Support | Terms of Use | Feedback