[omniORB] Interceptor for OmniORB 2.8

Duncan Grisby dgrisby@uk.research.att.com
Thu, 25 Oct 2001 13:56:43 +0100


On Tuesday 23 October, "Haarek Ryeng" wrote:

> I have legacy code using OmniORB 2.8, and I'm in need of a "global
> ShowStopper" who stops all incoming CORBA calls before the
> implementation object (Servant) is involved. It could be implemented
> as an int (of value 0 or 1) checked in the ORB somewhere.
> 
> Alas - I'm not an expert on the OmniORB code, so:
>
> Can someone point me to a "bottleneck" (piece of code that runs for
> every call) in the ORB code where the best place would be to add
> such a check for every remote call?

All remote calls go through GIOP_S::dispatcher, defined in
src/lib/omniORB2/giopServer.cc. Local calls are a direct virtual
function call on the servant, so there is no opportunity to intercept
them, I'm afraid.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --