Hi Paul,
Assuming the Object Reference was created by a POA with the RETAIN
ServantRetentionPolicy (for example, the RootPOA), or a POA with the
USE_DEFAULT_SERVANT RequestProcessingPolicy, you can call
reference_to_servant() on the POA the Object Reference.
If there's a Servant (implementation object) in the Active Object Map,
or a Default Servant, currently active to service requests on the
Object Reference, it will be returned. Otherwise the call will throw
the ObjectNotActive Exception.
Be sure to call _remove_ref on the returned Servant to avoid leaking.
Regards,
Conor
http://www.orbzone.org
paul - 03 Feb 2006 17:15 GMT
> Hi Paul,
>
[quoted text clipped - 13 lines]
> Conor
> http://www.orbzone.org
ok but how the POA find servant object from a corba reference?