Homepage of Ingo Klöckl
 Home
 Programmieren
 - Toolbox
 - Java
 - PostScript
 - Perl
 - Assembler
 - Links
 - Download
Ingo Klöckl
i.kloeckl@2k-software.de

Programming CORBA with Orbacus on Linux

A simple CORBA client/server pair using CORBALOC reference resolvinb

This examples demonstrates the usage of CORBALOC with a simple example of a client/server pair. The files we have to write are:

The example can be build using this Makefile.

After succesfull build of all executables, the following steps are required for running the example. First, you have to setup all PATH and LD_LIBRARY_PATH variables as explained here. In the example, we use host 'adrasteia' for running the server and 'nike' for starting the client:

adrasteia$ server 5556

nike$ client adrasteia 5556
Note that the server gets a port number as argument. The client uses this port number as well as the host name on which the server runs. These arguments are used as initial arguments while initializing the ORB, similar to the arguments with which you supply name service locations.

back to CORBA page