3.4 Step 2: Generate CORBA client Stubs and Skeletons

The interface specification defined in OMG IDL is used by the IDL compiler to generate CORBA client stubs for the CORBA client application, and skeletons for the CORBA server application. The CORBA client stubs are used by the CORBA client application for all operation invocations. You use the skeleton, along with the code you write, to create the CORBA server application that implements the CORBA objects.

During the development process, use one of the following commands to compile the OMG IDL file and produce CORBA client stubs and skeletons for Oracle Tuxedo CORBA client and server applications:

  • If you are creating CORBA C++ client and server applications, use the idl command. For a description of the idl command, see the Oracle Tuxedo Command Reference in the Oracle Tuxedo online documentation.

The following table lists the files that are created by the idl command.

Table 3-3 Files Created by the idl Command

File Default Name Description
CORBA client stub file application_c.cpp Contains generated code for sending a request.
CORBA client stub header file application_c.h Contains class definitions for each interface and type specified in the OMG IDL file.
Skeleton file application_s.cpp Contains skeletons for each interface specified in the OMG IDL file. During run time, the skeleton maps CORBA client requests to the appropriate operation in the CORBA server application.
Skeleton header file application_s.h Contains the skeleton class definitions.
Implementation file application_i.cpp Contains signatures for the methods that implement the operations on the interfaces specified in the OMG IDL file.
Implementation header file application_i.h Contains the initial class definitions for each interface specified in the OMG IDL file.