HP Integrity NonStop J-Series User Manual

Page 219

Advertising
background image

1.

Create the SQL/MX database catalog and schema on the NonStop system with names specified
in the hibernate.properties file.

The MXCI commands to create the database catalog and schema are as follows:

mxci>> create catalog employeeinfocat LOCATION <node.$vol>;

mxci>> create schema employeeinfocat.employeeinfosch
AUTHORIZATION "<user>" LOCATION ZSD<subvol reference>;

NOTE:

By default, the hibernate.properties file has the catalog name as

employeeinfocat

and schema name as employeinfosch. If you have modified the

catalog name and schema name in the hibernate.properties file, run the MXCI
commands.

2.

Copy the created project JAR file EmployeeInfo.jar from the Windows system to <NonStop
SASH Home
>/hibernate/my_samples/employeeinfo

on the NonStop system.

3.

Copy the ei_setenv script from <My SASH
Home
>\hibernate\getting-started\envsetup

to <NonStop SASH

Home>/hibernate/my_samples/employeeinfo

on the NonStop system.

NOTE:

To view the contents of the ei_setenv script, see

“Hibernate Environment Setup

Script” (page 228)

.

4.

Edit the ei_setenv script:
1.

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.

2.

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

.

Overview of EmpIoyeeInfo

219

Advertising
This manual is related to the following products: