beautypg.com

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

Page 24

background image

Add a new pet to the system

View information about the pet's visit to the clinic

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.

NOTE:

The JPetStore sample application described here uses Spring 3.0.2 version.

To use JPetStore, complete the following steps:

“Building JPetStore on Windows” (page 24)

“Setting up JPetStore Database on NonStop” (page 25)

“Deploying JPetStore on NonStop” (page 26)

“Running JPetStore on NonStop” (page 26)

Building JPetStore on Windows

1.

Go to the \spring\samples\jpetstore directory on the Windows
system.

2.

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

Go to the Home>\spring\samples\jpetstore\src\main\webapp\WEB-INF

directory on

the Windows system.

2.

Modify the jdbc.properties file to update the JDBC configuration. You can use either
the JDBC Type 2 driver or the JDBC Type 4 driver by setting their SQL/MX settings as
follows:

For JDBC Type 2 driver, uncomment the SQL/MX settings for the JDBC Type 2 driver,
so that it appears as:

#-------------------------------------------------------------
# SQL/MX Settings for JDBC Type 2 Driver
jdbc.driverClassName=com.tandem.sqlmx.SQLMXDriver
jdbc.url=jdbc:sqlmx://
jdbc.username=
jdbc.password=
jdbc.catalog=jpetstorecat
jdbc.schema=jpetstoresch

NOTE:

Because the JDBC Type 2 driver is located on the NonStop system, you

need not specify the values for jdbc.username and jdbc.password fields.

For JDBC Type 4 driver, uncomment the SQL/MX settings for the JDBC Type 4 driver
, and enter the values for the JDBC URL (NonStop system IP Address and port number
of the JDBC data source), NonStop system username, and password so that it appears
as:

#-------------------------------------------------------------
# SQL/MX Settings for JDBC Type 4 Driver
jdbc.driverClassName= com.tandem.t4jdbc.SQLMXDriver
jdbc.url= jdbc:t4sqlmx://:
jdbc.username=
jdbc.password=
jdbc.catalog=jpetstorecat
jdbc.schema=jpetstoresch

NOTE:

<HP NonStop Username>

must have access to the schema created for

JPetstore.

24

Spring Framework

This manual is related to the following products: