C++ Implementing a DSI Servant
A DSI servant is implemented by defining a new class that inherits from PortableServer::DynamicImplementation and overriding certain inherited member functions. The inheritance tree for a C++ DSI servant is illustrated in Figure 19.2.
In the example, a new servant class, MyDSIServant, is defined.
The _this() function defined in the DynamicImplementation base class returns a generic CORBA::Object_ptr object reference. This contrasts with a normal servant, which inherits a type-specific _this() function.
Figure 19.2. A C++ inheritance tree for a DSI servant.
C++ Overriding DynamicImplementation Member Functions ...
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.