A sample applications, Pre-requisites, Dependent libraries for the sample applications – HP Integrity NonStop H-Series User Manual
Page 50: Building the sample applications

A Sample applications
The NSMQ package contains the following Spring sample applications for your reference and
can help you get started with NSMQ.
•
jmsinvoker: This sample demonstrates the usage of Spring's feature of using JMS to host
business logic services.
•
jmstemplate: This sample demonstrates the usage of the Spring class
org.springframework.jms.core.JmsTemplate
.
•
messagelistener: This sample demonstrates the usage of Spring's MessageListener container
feature.
These samples are provided only for reference and help you get started with NSMQ. You can
create your own sample applications and use with NSMQ. The following sections describe the
steps to build and run these sample applications on NonStop systems.
Pre-requisites
Before getting started, make sure that you have the following software installed. These applications
can be run from any platform where Java is supported (Windows, Unix, NonStop, etc.).
•
Apache ANT
•
JDK 1.6 or later version
Dependent libraries for the sample applications
Before executing the sample applications, you must have the following Spring libraries for compiling
and running the samples provided with NSMQ. These dependent JAR files are available in the
<NSMQ-Installation-folder>/lib
and <NSMQ-Installation-folder>/lib/optional
folders. The build.xml automatically picks up these files to form the CLASSPATH.
•
activemq-all-5.6.0.jar
•
aopalliance.jar
•
commons-logging-1.1.1.jar
•
geronimo-jms_1.1_spec-1.1.1.jar
•
org.springframework.aop-3.0.5.RELEASE.jar
•
org.springframework.asm-3.0.5.RELEASE.jar
•
org.springframework.aspects-3.0.5.RELEASE.jar
•
org.springframework.beans-3.0.5.RELEASE.jar
•
org.springframework.context-3.0.5.RELEASE.jar
•
org.springframework.context.support-3.0.5.RELEASE.jar
•
org.springframework.core-3.0.5.RELEASE.jar
•
org.springframework.expression-3.0.5.RELEASE.jar
•
org.springframework.jms-3.0.5.RELEASE.jar
•
org.springframework.transaction-3.0.5.RELEASE.jar
•
slf4j-api-1.6.4.jar
•
slf4j-log4j12-1.6.4.jar
Building the sample applications
Go to the <NSMQ-Installation-folder>/samples/spring/<sample_app> directory
and execute the following command:
50
Sample applications