[omniORB] Retrieving the ObjectId from an Object Reference
Gary Duzan
gduzan at bbn.com
Fri Jun 6 14:14:01 BST 2003
In Message <934536459C1DF0408EA45C61B7A01EED094B3D at SENT5> ,
Silvia Andreia Rocha <silvia.rocha at SE.EFACEC.PT> wrote:
=>Hi,
=>
=>Does anyone know how an application can obtain the ObjectId associated with
=>an IOR?
=>
=>I've taken a look at "reference_to_id" but it says that it will only work if
=>the POA used to create the IOR is also used to invoke the "reference_to_id".
Do you want to do this in general or only on the server side?
In general you can't, because the POA interface is "local", but you can
use reference_to_id() or servant_to_id() on the server.
=>This brings out another issue: is it possible for an object to get and use
=>another objects POA? If true how can this be done?
In general, no. On the server side, a servant can't even get
its own POA unless you implement _default_POA() (or always use
the RootPOA.)
Gary Duzan
BBN Technologies
A Verizon Company
More information about the omniORB-list
mailing list