Manual

JPetStore
The intended users of the JPetStore sample application are Visitors and Shoppers. A Visitor is
anyone who visits the site. A Shopper is an authenticated visitor who is signed in to the site.
Visitors can browse the site for items of their interest. Shoppers can purchase items of their
interest.
This section describes how to build, setup, deploy, and run the JPetStore sample application.
Building JPetStore on Windows
Setting up JPetStore Database on NonStop
Deploying JPetStore on NonStop
Running JPetStore on NonStop
NOTE: The modifications made to the JPetStore files are described in Customizing JPetStore.
Building JPetStore on Windows
To build JPetStore on your Windows system, complete the following steps:
1. Go to the <My SASH Home>\spring\samples\jpetstore directory on your Windows
system. Among other files, this directory consists of the following sub-directories:
\db
includes the database tables creation scripts and dataload scripts.
\src
includes the customized source for JPetStore.
\war
includes all the necessary configuration files required to build the application WAR file.
2. Modify the JPetStore build file.
If you plan to use the JDBC Type 2 driver, set the spring.root property in the <My
SASH Home>\spring\samples\jpetstore build_jdbct2.xml file:
<property name="spring.root" value="<Spring Home>/>
For example, if your <Spring Home> is C:\spring-framework-2.5.5, modify
the spring.root property to:
<property name="spring.root" value="C:\spring-framework-2.5.5/>
If you plan to use the JDBC Type 4 driver:
1. Set the spring.root properties in the build_jdbct4.xmlfile as:
<property name="spring.root" value="<Spring Home>/>
For example, if your <Spring Home> is C:\spring-framework-2.5.5, modify
the spring.root file to:
<property name="spring.root" value="C:\spring-framework-2.5.5/>
2. Set the jdbct4.root properties in the build_jdbct4.xml file as:
<property name="jdbct4.root" value="<JDBC T4 installation directory>
For example, if the <JDBC T4 installation directory> is C:\JDBCT4,
modify the jdbct4.root property to:
<property name="jdbct4.root" value="C:\JDBCT4"/>
3. Configure the JDBC driver settings for the NonStop SQL/MX database.
1. Go to the <My SASH Home>\spring\samples\jpetstore\war\WEB-INF directory
on your Windows system.
54 Installing Spring Framework