[omniORB] POA::deactivate_object and id_to_reference

Rene Jager renej.frog at yucom.be
Wed Oct 29 15:38:50 GMT 2003


I have the following problem:

after a call to

    poa->deactivate_object(object_id)

I expected that

    poa->id_to_reference(oid)

would throw ObjectNotActive, but it does not. Both calls are within the
same method.

The spec says:

<quote>
If an object with the specified Object Id value is currently active, a
reference encapsulating the information used to activate the object is
returned. If the Object Id value is not active in the POA, an
ObjectNotActive exception is raised.
</quote>

I expected that since it is deactivated the object is not currently
active. Otherwise, the spec should mention "in the Active Object Map" as
it does with "POA::id_to_servant" or while still processing requests.

Is the spec unclear or is omniORB wrong here?
In either case, is there a solution to know when the last request is
finished? I need this information for cleaning up in combination with
default servant policy, so servant ref counting is not applicable.

renej




More information about the omniORB-list mailing list