beautypg.com

Jpetstore, Building jpetstore on windows – HP Integrity NonStop H-Series User Manual

Page 54

background image

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

\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

SASH Home>\spring\samples\jpetstore build_jdbct2.xml

file:

For example, if your

is

C:\spring-framework-2.5.5

, modify

the

spring.root

property to:

If you plan to use the JDBC Type 4 driver:
1.

Set the

spring.root

properties in the

build_jdbct4.xml

file as:

For example, if your

is

C:\spring-framework-2.5.5

, modify

the

spring.root

file to:

2.

Set the

jdbct4.root

properties in the

build_jdbct4.xml

file as:

For example, if the

is

C:\JDBCT4

,

modify the

jdbct4.root

property to:

3.

Configure the JDBC driver settings for the NonStop SQL/MX database.
1.

Go to the

\spring\samples\jpetstore\war\WEB-INF

directory

on your Windows system.

54

Installing Spring Framework

This manual is related to the following products: