Returning Parameters

In addition to a single return value, CORBA operations also permit you to define out parameters that are effectively like extra return values passed from server to client. The following sections outline how to call and how to implement an operation with out parameters.

Using out Parameters on the Client Side

In C++, out parameters are handled in a number of ways, depending on the type of parameter passed. Details of how to use out parameters in C++ are presented in Chapter 4.

In Java, out parameters are handled using Holder types. A Holder type has to be used for an out parameter because Java does not natively support pass-by-reference semantics. For example, the invocation of the SearchableCollection::find_by_title() operation, ...

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.