NamingContext::resolve

Overview Retrieves an Object bound to a name.
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 retrieves the object bound to a name in the target naming context. The name can be a simple name. If so, the name should match the name bound to the object in the context. The name also can be a compound name that spans multiple contexts. In this case, name resolution traverses multiple contexts. At each context traversed, the name bound to this context should match the name component corresponding to the traversed context. The last name component of the compound name should match the name bound to the object in the last traversed naming context.

The type of the returned object is not provided. Clients are responsible for "narrowing" the object to the appropriate type. Clients typically cast the returned object to a more specialized interface.

Syntax

  Object resolve(in CosNaming::Name name);

Input parameters

name
The name for the name-object binding.

Return values

Object
The name of the object bound to the supplied name.

Example

See the CosNaming Usage example for BindingIterator::destroy.


Related reference
CosNaming in the naming service



Searchable topic ID:   rcor_cnsnc9
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_cnsnc9.html

Library | Support | Terms of Use | Feedback