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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.