[omniORB] Interoperable Naming Service

Andrew Weaver Andrew.Weaver@tecnomen.fi
Wed, 1 Aug 2001 13:30:52 +0300


Moi, I have been reading chapter 4 of the user's guide and wondering how
best to use the "corbaloc" URI facility.

So far, I have tries to use something like 

CORBA::Object_var obj =
orb->string_to_object("corbaloc:iiop:gsh:40000/Echo");

but with no success. 

My server is on port 40000 on machine "gsh" and uses "Echo" as its object
ref name as used in

ObjectId = PortableServer::string_to_ObjectId(ObjRefName);

So, I guess the "Echo" used in the corbaloc is not the "Object Key". Ho do I
get the "Object Key" to be used there. 

Kind Regards

Andy Weaver