[omniORB] Interceptor interfaces
Duncan Grisby
dgrisby@uk.research.att.com
Thu, 21 Mar 2002 11:43:43 +0000
On Wednesday 20 March, Brecht Vermeulen wrote:
> I don't think registering interceptors before ORB_init() would be a
> problem for our code, although maybe you loose some flexibility: at
> first sight it seems possible now to dynamically register interceptors
> during run and it wouldn't be possible anymore if you move the
> registration before ORB_init(), or am I wrong (I haven't tried this yet
> and we don't need it for now) ?
It is currently possible to register interceptors during run time, but
that is a bad thing since there isn't any concurrency control. Things
might unexpectedly blow up if a request comes in while you're changing
the interceptors.
I don't want to add concurrency control to make it safe, since that
would give everyone a performance hit. However, there's nothing to
stop the application registering an interceptor at the start that
provides its own mechanism for registering/deregistering interceptors
at run time, and does the necessary concurrency control.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --