Owner manual

$ANT_HOME/bin/ant jar
where $ANT_HOME is the location where Apache ANT is installed.
This command compiles and create the jar file.
Running the sample applications
Before running the samples, modify the brokerURL property of the connectionFactory bean
in the Spring Application Context configuration files to reference to a running NSMQ broker
instance.
Table 6 Configuration property for the samples
Configuration files to be modifiedSample application
clientApplicationContext.xmljmsinvoker
serverApplicationContext.xml
applicationContext.xmljmstemplate
listenerApplicationContext.xmlmessagelistener
producerApplicationContext.xml
1. To run the server, execute the following command in a command window:
$ANT_HOME/bin/ant server
2. To run the client, open another command window and change the current directory to ..\
samples\spring directory.
3. Execute the following command:
$ANT_HOME/bin/ant client
In the jmsinvoker client, the following message appears on the screen:
"Hello NSMQ!"
In the jmstemplate client, the following message appears on the screen:
[java] Received Message (converted): NSMQ
[java] Co-relation id: 12d4f971-1ef3-429a-9f73-fb1737ea697b
In the messagelistener, messages similar to the text shown below are printed on the screen
where the $ANT_HOME/bin/ant server command was executed.
[java] Processed in Thread: dmlc-4, Message text: Message from....
[java] Processed in Thread: dmlc-1, Message text: Message from....
[java] Processed in Thread: dmlc-2, Message text: Message from....
[java] Processed in Thread: dmlc-5, Message text: Message from....
[java] Processed in Thread: dmlc-3, Message text: Message from....
Running the sample applications 51