CORBA 2.3.3 Getting Started Guide (NonStop CORBA 2.3.3+)

The Makefile Script
The Makefile script does the following:
Uses the NonStop CORBA IDL compiler to process the interface contained in stack.idl.
Builds the server executable by using the C++ compiler to compile the server components.
Builds the client executable by using the C++ compiler to build the server components.
The NonStop CORBA IDL compiler (NSDIDL), takes stack.idl file as input and produces the
following four files:
stack_client.h
stack_client.cpp
stack_server.h
stack_server.cpp
You do not need to view or understand the contents of these files. Simply put, they contain the CORBA
specified C++ language mapping translation of the interface definition. Client programs use the
stack_client components to implement the client interface, and server programs use the
stack_server components to implement the server interface.
Running the Stack Example
Before you can run the stack example, you must configure the stack server for your particular system by
editing, then sourcing, the stack server configuration script config.src:
Edit the config.src file, changing the <CHANGE_ME> value to a valid top host name or address.1.
Use the Configuration Tool to source the stack-server configuration script by issuing these
commands at the OSS and Configuration Tool prompts:
> cfgmgt
> source config.src
> exit
These commands load the sample_stack@ORB entity.
2.
You have now built and configured the stack example and are ready for the trial run. However, before
you can run the stack example, you must start your NonStop CORBA system by using the Distributed
Component Console as described in Start NonStop CORBA Server Processes on the Host System.
To run the stack example, open two OSS windows, one for the client portion of the program and one for
the server portion. In each window, navigate to the directory where the stack sample was built, which is
usually the samples/stack subdirectory of your NonStop CORBA installation. Before running the
program, make sure that each window has the correct NonStop CORBA environment in place, which is