[omniORB] Accessing ServiceContext from omniORBpy?

Duncan Grisby duncan@grisby.org
Mon Feb 10 11:28:01 2003


On Thursday 6 February, Craig Rodrigues wrote:

> Does anyone have a code example for accessing
> the ServiceContext of a CORBA request
> from omniORBpy?

No, because it can't be done directly. It isn't currently possible to
implement interceptors in Python. It would be easy to map the
interception points to Python, but it wouldn't do much good without
mapping all the internal omniORB interfaces (GIOP_S, cdrStream, that
sort of thing) to be accessible to Python. The ideal situation would
be to implement the portable interceptors API for Python, but that's
not a small task.

You can implement a small bit of interceptor code in C++, and set some
per-thread state accessible to Python.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --