[omniORB] OmniORB Exception interceptor

Duncan Grisby duncan at grisby.org
Tue Apr 18 16:25:39 BST 2006


On Tuesday 4 April, =?utf-8?B?0JzQsNC60YEg0JvQsNC/0YjQuNC9?= wrote:

> server marks some objects with timestamp (one, global for all
> objects).  Client must track the last timestamp
> and provide it via interceptor each call. When timestamp changes,
> notification is sent to all.
> If client does not update timestamp, it get exception:
> InvalidTimestamp  with the right timestamp.
> 
> It would be great, if possible to intercept all exceptions, going from
> server to recognize there InvalidTimestamp,
> change the timestamp to right one and repeat the call right from
> interceptor (or some other proxy).
> 
> Client uses OmniORB, server uses TAO. Is it possible?

No, it's not possible at present. It would not be especially hard to
extend the current system exception handling mechanism to allow you to
register a user exception handler as well. Look at the _invoke() method
in omniObjRef.cc to see where it catches SystemExceptions and calls the
handlers.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list