HP Integrity NonStop H-Series User Manual
Page 58

6.
Modify the SERVERCLASS-SETUP file to change the values of CWD, ARGLIST, JAVA_HOME,
PROGRAM, and VOLUME parameters.
You must change the directory values to properly point to the nsmq-pway.jar directory,
activemq-all-5.6.0.jar
, JToolkit jar, jndi.properties, JAVA_HOME and
java program files.
7.
Copy and paste these contents to the PATHCOM session you opened in step 4. A server-class
by name NSMQSAMPLE will be setup.
8.
Start the server-class using the following command:
START SERVER NSMQSAMPLE
9.
Modify the build.xml property pathmon-name if the PATHMON name in step 3 is changed.
10. Run the TS/MP client as follows:
$ANT_HOME/bin/ant tsmpClient -Darg1=NSMQSAMPLE -Darg2="Hello NSMQ"
An output similar to the following is displayed:
[Begin-output of Command]
Buildfile: build.xml
tsmpClient:
[java] [$MYPMN, nsmqsample, Hello NSMQ]
[java] Java Version is : 1.7.0_01
[java] Loading PUT DLL..
[java] Reply from Server: SENT <-- This is the JMS message sent to NSMQ.
[java] Reply from Server: RECEIVED:Hello NSMQ <-- This is the JMS message
received from NSMQ.
BUILD SUCCESSFUL
Total time: 2 seconds
[End-Output of Command]
58
Use cases