[omniORB] NameService

bjorn rohde jensen shamus@tdcadsl.dk
Mon, 15 Apr 2002 16:00:02 +0200


Hi Koji,

 A lookup in a CORBA name service only yields a match,
if the name and kind parts of all name components match.
The default value of the kind field of a name component
is an empty string.

"Eguchi, Koji" wrote:
> 
[snip]
>         CosNaming::Name name(2);
>         name.length(2);
>         name[0].id = CORBA::string_dup("Stars");

          name[0].kind = CORBA::string_dup("Services");//set kind part

>         name[1].id = CORBA::string_dup("MCM");

          name[1].kind = CORBA::string_dup("Server");//set kind part

>         CORBA::Object_var obj = root->resolve(name);
[snip]
> 
> Best regards,
> Koji

yours sincerely,

bjorn