In article <10*************@corp.supernews.com>,
Melissa Wallis <mw*****@swri.org> wrote:
I am using python and omniORB for a client program. The server is on
another machine using an ACE TAO orb. I have been unable to figure out how
to talk to a different naming service without using the IOR. I will not
always have the IOR available so I need to use the naming service. Has
anyone been able to connect to a different ORB using the naming service?
Configure omniORB with a line like this in its config file:
InitRef = NameService=corbaname::my.host.name:port
putting in the right host name and port for TAO's naming service. If
TAO uses the default port of 2809, you can miss out the port number.
Then you can just get hold of the name service with code like:
orb = CORBA.ORB_init()
obj = orb.resolve_initial_references("NameService")
ns = obj._narrow(CosNaming.NamingContext)
Cheers,
Duncan.
--
-- Duncan Grisby --
--
du****@grisby.org --
--
http://www.grisby.org --