[omniORB] Is it possible to customize request discarding (with
omniORB)?
Johnny Willemsen
jwillemsen at remedy.nl
Fri Aug 5 09:55:19 BST 2011
Hi,
Have you checked the server portable interceptors, you could throw an exception there.
Johnny
Op 5 aug. 2011 om 08:41 heeft "Martin B." <0xCDCDCDCD at gmx.at> het volgende geschreven:
> 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
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
More information about the omniORB-list
mailing list