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-7
Install and Configure the NSJMS C++ API
where T1251-version is the vproc of the NSJMS (T1251) release (for example,
T1251V30_30SEP2003_V30).
5. Compile the sample programs by using the following commands. The sample
programs use the destinations created in Step 4 above:
6. Test the sample programs
You will need two OSS shells to test each sample program.
a. Test the Point-to-Point sample program by using these commands:
In the first shell:
In the second shell:
Your Point-to-Point sample program output will be similar to:
OSH: cd /usr/tandem/nsjms/T2811-version/examples
OSH: make
Note. It is assumed that the NSJMS_HOME variable exists and is set to the home
directory of your NSJMS (T1251) installation.
OSH: cd examples
OSH: SimpleReceiver -queue Q1 -count 5
OSH: cd examples
OSH: SimpleSender -queue Q1 -count 5
OSH: cd examples
OSH: SimpleReceiver -queue Q1 -count 5
OSH: RCV Message: Sending message 0
OSH: RCV Message: Sending message 1
OSH: RCV Message: Sending message 2
OSH: RCV Message: Sending message 3
OSH: RCV Message: Sending message 4
OSH: cd examples
OSH: SimpleSender -queue Q1 -count 5
OSH: Sending message 0
OSH: Sending message 1
OSH: Sending message 2
OSH: Sending message 3
OSH: Sending message 4
OSH: Finished Sending 5 messages