Java Implementing a DSI Servant
A DSI servant is implemented by defining a new class that inherits from PortableServer.DynamicImplementation and overriding certain inherited methods. The inheritance tree for a Java DSI servant is illustrated in Figure 19.3.
Figure 19.3. The Java inheritance tree for a DSI servant.
In this example, a new servant class, MyDSIServant, is defined.
The _this_object() function defined in the Servant base class returns a generic org.omg.CORBA.Object object reference. Unlike a normal servant, the DSI servant does not have a type-specific _this() function.
The next section discusses the DynamicImplementation member ...
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.