Discussion:
[omniORB] When should omniInterceptors...remove() be called?
Martin B.
2011-01-13 17:45:04 UTC
Permalink
Hi!

The docs are quite clear on the setup of interceptors:
[quote]
Each interception point consists
of a singleton object with add() and
remove() methods (...)

All the interceptor singletons are
registered (...)
You retrieve a pointer to the object
with the omniORB::getInterceptors()
function, which must be called after
the ORB has been initialised with
CORBA::ORB_init(), but before the ORB
is used.
[end quote]

However, the docs do not state when to call the remove() function to
remove an interceptor.
I'm trying to add an interceptor for omniInterceptors::createThread_T
and I'm wondering where to remove it:
a) before orb->shutdown() ?
b) before orb->destroy() ?
c) after orb->destroy() ?
d) not at all ?

cheers,
Martin

Loading...