[omniORB] Servant and it's implementation
Duncan Grisby
duncan at grisby.org
Fri Jul 25 17:13:38 BST 2003
On Sunday 20 July, Venkatesh Prasad Ranganath wrote:
> I am experimenting with mico, omni, and a couple of Java orbs. When
> I compile idl to Java, there is an interfacePOA class that is
> generated. The servantImpl inherits this class, thus enabling one
> to store servantImpl in a variable of type interfacePOA and then, if
> needed, cast this variable back to servantImpl type. However, I
> could not find a similar mechanism when I compiled idl to C++.
The C++ mapping is exactly the same except that the servant base class
is called POA_Interface instead of interfacePOA. You then use
dynamic_cast<> to dynamically cast to your servant implementation
class.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list