HP Integrity NonStop J-Series User Manual

Page 162

Advertising
background image

mxci>> obey caveatemptor_script.sql;

NOTE:

By default, the caveatemptor_script.sql script file creates the database catalog

auctionccat

and schema auctionsch. If the database catalog name auctionccat and

schema name auctionsch already exist, or if you want to use a different database catalog
and schema name, modify the following:

database catalog and schema names in the caveatemptor_script.sql script file.

database catalog and schema names in the hibernate.properties file in the <My
SASH Home
>\hibernate\samples\eg

directory of the SAMPLES.zip file.

Setting up the Hibernate and JDBC environment on NonStop

To set the CLASSPATHs for the Hibernate and JDBC driver environment, complete the following
steps:

1.

Modify the <My SASH Home>\hibernate\samples\eg\setup\setenv script file:
a.

Set the value of the hibernatehome variable to the <NonStop Hibernate Home>
OSS directory.

For example, if <NonStop Hibernate Home> is /usr/tandem/sash/
hibernate-distribution-3.5.1-Final

,

the hibernatehome variable must be set to hibernatehome=/usr/tandem/sash/
hibernate-distribution-3.5.1-Final.

b.

Set the value of the mavenrepository variable to the <NonStop Hibernate Maven
Repository
>

OSS directory.

For example, if <NonStop Hibernate Maven Repository> is /usr/tandem/
sash/.m2

, the mavenrepository variable must be set to mavenrepository =/

usr/tandem/sash/.m2

.

c.

Set the value of the JDBC driver locations.

To use the JDBC Type 2 driver, set the value of the t2jdbc variable to the <JDBC
T2 Installation Directory
>

OSS directory.

For example, if <JDBC T2 Installation Directory> is /usr/tandem/
jdbcMx/current

, the t2jdbc variable must be set to

t2jdbc=/usr/tandem/jdbcMx/current

To use the JDBC Type 4 driver, set the value of the t4jdbc variable to the <NonStop
SASH Home
>

OSS directory.

For example, if <NonStop SASH Home> is /home/sash_usr/sash, the t4jdbc
variable must be set to t4jdbc=/home/sash_usr/sash

2.

Create a directory in OSS to place the script files:

OSS> mkdir -p <NonStop SASH Home>/hibernate/samples/eg/setup

For example:

OSS> mkdir -p /home/sash_usr/sash/hibernate/samples/eg/setup

NOTE:

It is suggested that you create hibernate/samples/eg/setup directory structure

in <NonStop SASH Home>.

3.

Copy the setenv script file from <My SASH Home>\hibernate\samples\eg\setup
to <NonStop SASH Home>/hibernate/samples/eg/setup.

4.

Set the execute permissions of the setenv script file:

162

Installing the Hibernate Framework

Advertising
This manual is related to the following products: