Programming CORBA with Orbacus on Linux
A simple CORBA client/server pair with explicit activation and object IDs
This examples demonstrates some techniques using a very simple example of a client/server pair.
The server creates a new POA with customized policy to explicitly activate the server
implementation with an object ID.
we have to write the following files:
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.
First, you have to start the server, then, in another window, the client. The client tries to
locate the server via a reference stored in a file, and calls some remote methods.
It is possible to run both programs on different hosts, if the machines have access to a common
file system, e.g. a Samba or NFS filesystem. Both programs must be able to write or find the
file with the stringified IOR.
back to CORBA page
|