CORBA 2.6.1 Programmer's Guide for C++

1. Define the CORBA object's interface in a CORBA Interface Definition Language (IDL) file.
2. Compile the IDL file using the NonStop CORBA IDL compiler. Compiling the IDL file will generate several files:
A header file to include in client programs that use the CORBA object.
A client stub source file to be compiled and linked with client programs.
A header file to include in the server that implements the CORBA object. Note that the server header, in turn, includes the client
header.
A server skeleton source file to be compiled and linked with the server program.
3. Create the client application:
The client application code uses the CORBA object, so it includes the client header file produced by the IDL compiler.
Compile the client application code, producing an object file.
Compile the client stub code produced by the IDL compiler, producing an object file.
Link the two client application files (and any other object, library, or SRL files), to produce a client program.
4. Create the server:
Create an object implementation header file based on information found in the server skeleton header.
Create the server main program and object implementation. Code must be written for each method declared in the IDL interface
definition.
Compile the server implementation code, producing an object file.
Compile the server skeleton code produced by the IDL compiler, producing an object file.
Link the two server implementation files (and any other object, library, or SRL files), to produce a server program.
If using NonStop SQL, you may also need to do an SQL compile of the server program.
5. Start the server program. It uses the NonStop CORBA ORB implementation contained in the NonStop CORBA shared run-time library
(SRL).
6. Start the client application program. It also uses the NonStop CORBA SRL. It makes requests of the object hosted in the server and
receives replies.