[omniORB] use of NameService iterator

Amit Kumar amitk at tarangtech.com
Fri Oct 23 17:57:43 BST 2009


Hi Duncan,

Thanks for the response. I am able to iterate through the child contexts as well now.

Regards,
Amit

-----Original Message-----
From: Duncan Grisby [mailto:duncan at grisby.org] 
Sent: Friday, October 23, 2009 4:36 PM
To: Amit Kumar
Cc: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] use of NameService iterator

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