Writing and Using Portable Interceptors

To illustrate writing and using the Portable Interceptors, we consider a simple example of server-side logging service. It observes every invocation call from a client and prints the RepositoryID for the most derived interface of the called servant, the operation name, the time of the incoming request, and the time when the reply is returned to the client.

Writing a Server-Side Interceptor

To provide the above logging service, we write a server-side request Interceptor that implements the ServerRequestInterceptor interface and extends LocalObject in case of Java (for example, ORBIX, OpenORB), or IT_CORBA::RefCountedLocalObject in case of C++ (for example, ORBIX). The logging functionality is implemented ...

Get Pure CORBA now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.