MICO: Re: [omniORB] Can I use a naming service with different orbs?
Bill Janssen
janssen@parc.xerox.com
Tue, 31 Aug 1999 18:33:09 PDT
The Interoperable Naming Service spec was revised last November to
support URLs mechanisms. For example, suppose your CosNaming
nameservice is running on host "foo", port 9999, and that the object key
of the root NamingContext is "NameService". You could then instruct
your client to use it by specifying
client -ORBInitRef NameService=iioploc://foo:9999/NameService
The client code then uses
resolve_initial_references("NameService")
to get the NameService object, and the "resolve" method on that to
lookup registered objects by name.
This revision also established defaults that a CosNaming server is
supposed to use: an object key of "NameService" for the root
NamingContext, and a port of 9999.
The ILU CosNaming implementation supports this, as should all CORBA 2.3
implementations.
Bill