Programming CORBA with Orbacus on Linux
A simple CORBA client/server pair using a object factory
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.
Start now the server and, after that, the client:
adrasteia$ server&
adrasteia$ client SUN IB IBM
For each stock symbol given at the command line, the server is contacted, creates the appropriate
Stock object and returns a reference to this object for client use.
back to CORBA page
|