NonStop JMS C++ API Programmer's Guide

Installation and Configuration for TNS/R
NonStop Server for Java Message Service C++ API Programmer’s Guide526459-002
2-8
NSJMS C++ API Directory Structure
b. Test the Publish and Subscribe sample program by using these commands:
In the first shell:
In the second shell:
Your Publish and Subscribe sample program output will be similar to:
NSJMS C++ API Directory Structure
After completing the product installation, the /usr/tandem/nsjms/T2811-version
directory contains the following files and subdirectories:
install – Contains the installation script that copies the
TANDEM_SYSTEM_NSK.JMS_SCHEMA.LIBNSJMSC_T2811-version file to
the SQL/MX directory. For example, /usr/tandem/sqlmx.
COPYRIGHT.TXT – Contains the copyright notice for the NSJMS C++ API
software.
/include – Contains the header files required for using the NSJMS C++ API.
/doc – Contains many HTML files which describe the NSJMS C++ API including
index.html. This file contains a complete listing of the NSJMS C++ API
HTML documentation.
/lib – Contains
NSJMS C++ API library (libnsjmsc.a). This library contains the archive file
required for building programs using the NSJMS C++ API.
OSH: cd examples
OSH: SimpleConsumer -topic T1 -count 5
OSH: cd examples
OSH: SimplePublisher -topic T1 -count 5
OSH: cd examples
OSH: SimpleConsumer -topic T1 -count 5
Consumer has been set
OSH: Received message #0: Publishing this message 0
OSH: Received message #1: Publishing this message 1
OSH: Received message #2: Publishing this message 2
OSH: Received message #3: Publishing this message 3
OSH: Received message #4: Publishing this message 4
OSH: cd examples
OSH: SimplePublisher -topic T1 -count 5
Publishing this message 0
Publishing this message 1
Publishing this message 2
Publishing this message 3
Publishing this message 4
OSH: Finished publishing 5 messages