[omniORB] omniORBpy, corbaloc, and object id/keys

Cary O'Brien cobrien@Radix.Net
Thu, 15 Feb 2001 14:14:30 -0500 (EST)


> On Thursday 15 February, "Cary O'Brien" wrote:
> 
[snip description of python problem]

> > 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
> 

Thanks, that does indeed work.  I.E. If the server runs this...

  poa = orb.resolve_initial_references("omniINSPOA")
  ei = NameDB_i()
  eo = poa.activate_object_with_id("MyNameDB",ei)

The client can use

   corbaloc::localhost:5566/MyNameDB

But, when the server does this...

  # Print out the IOR
  print orb.object_to_string(eo)

Out comes 

  IOR:01000000010000000000000000000000

Which doesn't look right.


Thanks again

-- cary