[omniORB] use of NameService iterator

Duncan Grisby duncan at grisby.org
Fri Oct 23 13:05:50 BST 2009


On Wed, 2009-10-21 at 21:26 +0530, Amit Kumar wrote:

[...]
> Now, I am looking to get the list of all bindings under the context
> Child_context using the iterator available in NameService. But I am
> stuck at this problem mentioned in the book “Advanced Corba
> programming with C++”

[...]
> A binding list contains only names for the bindings immediately
> contained in the context;
> 
> it does not contain bindings in subcontexts.

[...]
> I am not even able to resolve the child_context using the initial
> context nc without resolving the individual bindings under
> child_context. 

I don't understand what the problem is. H&V are right that binding lists
do not recursively descend into child contexts, but there's nothing
stopping you writing code that does so. Maybe you will get some hints by
reading the code of namclt, in src/appl/utils/nameclt/nameclt.cc.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --





More information about the omniORB-list mailing list