This example provides a set of simple push suppliers and consumers.
The clients are designed to be as simple as possible. Each client (supplier or consumer) is a single class, with common functionality provided in the ChannelUtil class.
These instructions are based on the Solaris gcc3.2 compiler makefiles.
ACE_ROOT=<TAO install dir>; export ACE_ROOT
TAO_ROOT=<TAO install dir>; export TAO_ROOT
SHLIB_PATH=$TAO_ROOT/lib; export SHLIB_PATH
LD_LIBRARY_PATH=$TAO_ROOT/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
PATH=$PATH:$TAO_ROOT/bin; export PATH
INSLIB=$TAO_ROOT/lib; export INSLIB
PATH=/usr/local/gcc-3.2/bin:/usr/ccs/bin:$PATH; export PATH
LD_LIBRARY_PATH=/usr/local/gcc-3.2/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
<TAO install dir>/examples/cc
directory.
make
command to run the makefile. This will compile all of the OpenFusion examples.
TAO_ROOT=<TAO install dir>
where
<TAO install dir>
is the location into which you have installed
TAO.
<TAO install dir>\examples\examples.sln
. Double-click on the project file to load
it into
Microsoft Visual C++. For each of the projects lised below, change the project from debug
mode to release mode using the Build | Configuration Manager menu option.
UNIX: Ensure that the environment
variable LD_LIBRARY_PATH
includes the path to where the common files
and
the News files were compiled:
LD_LIBRARY_PATH=<TAO install dir>/examples/cc/Common:<TAO install dir>/examples/cc/Notification/news:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
Windows NT: Start a DOS window. Ensure that your path contains:
<TAO
install dir>\bin;<TAO install dir>\examples\cc\bin
Ensure that the Notification Service is running. In order to run the OpenFusion Notification Service you must first install the OpenFusion TCS - JacORB with OpenFusion CORBA Services distribution. This can be obtained from the downloads page by following the OpenFusion CORBA Products software link.
<client name> -ORBInitRef NotificationService=file://<OF_INSTALL_DIR>/domains/OpenFusion/localhost/NotificationService/NotificationSingleton/NotificationSingleton.ior
where client name
is the executable name of the client to run (listed in the table below), and
OF_INSTALL_DIR
is the OpenFusion TCS - JacORB with OpenFusion
CORBA Services installation directory.
Client Name | Executable Name |
---|---|
Any Push Consumer | anyconsumer |
Any Push Supplier | anysupplier |
Sequence Push Consumer | seqconsumer |
Sequence Push Supplier | seqsupplier |
Structured Push Consumer | strconsumer |
Structured Push Supplier | strsupplier |