Chapter 17. DynAny Type

The any type offers great flexibility when passing parameters to and receiving return values from an IDL operation. It is particularly useful for specifying interfaces when it is not known in advance what data types will be passed as operation parameters. This flexibility is needed for general-purpose bridges and messaging services. The OMG specification of the CORBA Notification Service provides a good example of this.

However, the standard mapping of the any type (CORBA::Any in C++ and org.omg.CORBA.Any in Java) has its limitations. It relies on stub code to provide the facility to manipulate its contents. Without stub code there is no means of inserting or extracting user-defined types.

To overcome the shortcomings ...

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.