Martin B.
2011-08-05 12:42:18 UTC
Hi!
I have a couple of objects in one process and for a certain state I
would like to discard all requests to these objects.
I can easily achieve this through POAManager::discard_requests, but this
has the drawback that the ORB/POA raises TRANSIENT
(TRANSIENT_POANoResource:COMPLETED_NO to be specific) and unfortunately
the clients we have at the moment are programmed to interpret TRANSIENT
as "system not there" and not "object temporarily unreachable". (And I'm
not sure if the minor code sent with TRANSIENT could be somehow used in
the clients to get some more insight.)
Anyways - the best thing would be if I could throw a custom user
exception (or a system exception with a custom minor code) for the
"discarding" state and the obvious place to put this would be the
POA/POAManager for the objects that are affected. But it seems I'm out
of luck here, or is there a way to achieve this?
cheers,
Martin
I have a couple of objects in one process and for a certain state I
would like to discard all requests to these objects.
I can easily achieve this through POAManager::discard_requests, but this
has the drawback that the ORB/POA raises TRANSIENT
(TRANSIENT_POANoResource:COMPLETED_NO to be specific) and unfortunately
the clients we have at the moment are programmed to interpret TRANSIENT
as "system not there" and not "object temporarily unreachable". (And I'm
not sure if the minor code sent with TRANSIENT could be somehow used in
the clients to get some more insight.)
Anyways - the best thing would be if I could throw a custom user
exception (or a system exception with a custom minor code) for the
"discarding" state and the obvious place to put this would be the
POA/POAManager for the objects that are affected. But it seems I'm out
of luck here, or is there a way to achieve this?
cheers,
Martin