NamingContext::rebind

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

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.


Related reference
CosNaming in the naming service



Searchable topic ID:   rcor_cnsnc7
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_cnsnc7.html

Library | Support | Terms of Use | Feedback