[omniORB] omniORBpy, corbaloc, and object id/keys
Duncan Grisby
dgrisby@uk.research.att.com
Thu, 15 Feb 2001 17:56:36 +0000
On Thursday 15 February, "Cary O'Brien" wrote:
> I have the server listening to a fixed port[2], so I know all of
> the uri except the "object key". In reading the documentation
> I find I need to use a POA named "omniINSPOA" so that I will have
> human-readable "object id". I've done this. So I guess I'm using
> a POA that uses the USER_ID policy.
>
> My question is simply how do I specify the "object key" or "object id"
> that can be used with a corbaloc uri to access the object?
Simply use
inspoa.activate_object_with_id("MyObjectId", servant)
Normally, omniORB puts some extra stuff in the object key as well as
the object id. With the INS POA, only the object id is used. You can
now refer to the object with
corbaloc:myhost:port/MyObjectId
> [2] Is there a way to do this other than appending strings to the
> argv passed to CORBA.ORB_init()? Just wondering.
No, you have to use the command line arguments.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --