beautypg.com

HP Integrity NonStop H-Series User Manual

Page 49

background image

For example, if your

is

C:\spring-framework-2.5.5

, modify

spring.root

to:

2.

Set the

jdbct4.root

properties in the

build_jdbct4.xml

file as:

For example, if the

is

C:\JDBCT4,

modify

jdbct4.root

to:

3.

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

Go to the

<My SASH Home>\spring\samples\petclinic\src

directory on your

Windows system.

2.

Modify the

jdbc.properties

file to update the JDBC configuration. You can use

either the JDBC/MX Type 2 driver or the JDBC/MX Type 4 driver. The SQL/MX settings
for each of them is as follows:

If you plan to use the JDBC/MX Type 2 driver, uncomment the SQL/MX settings
for the JDBC Type 2 driver in the

jdbc.properties

file, so that the SQL/MX

settings for JDBC Type 2 driver appear 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=petcliniccat
jdbc.schema=petclinicsch
hibernate.dialect=org.hibernate.dialect.SqlmxDialect

NOTE:

Because the JDBC Type 2 driver resides on the NonStop system, you need

not mention the username and password in the

jdbc.username

and

jdbc.password

fields.

If you plan to use the JDBC/MX Type 4 driver, uncomment the SQL/MX settings
for the JDBC Type 4 driver in the

jdbc.properties

file and enter the values of

the JDBC URL (NonStop system IP Address and port number of JDBC data source),
NonStop system username, and password.

The SQL/MX settings for the JDBC Type 4 driver in the

jdbc.properties

file appear

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=petcliniccat
jdbc.schema=petclinicsch
hibernate.dialect=org.hibernate.dialect.SqlmxDialect

4.

Build the PetClinic web application archive (

WAR)

file (

petclinic.war

).

1.

Go to

<My SASH Home>\spring\samples\petclinic

directory from the command

prompt using the command:

Command Prompt> cd \spring\samples\petclinic

2.

Build the PetClinic web archive.

If you plan to use the JDBC Type 2 driver, build the PetClinic web archive using
the command:

Deploying and Running Sample Spring Applications on NonStop

49

This manual is related to the following products: