beautypg.com

Setting up the nonstop environment – HP Integrity NonStop J-Series User Manual

Page 143

background image

Setting Up the NonStop Environment

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 ;

mxci>> create schema employeeinfocat.employeeinfosch
AUTHORIZATION "" LOCATION ZSD;

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 this 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 339)

.

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-4.1.1-Final

, the hibernatehome variable must be

set to hibernatehome=usr/tandem/sash/
hibernate-distribution-4.1.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

.

Getting Started with Hibernate

143

This manual is related to the following products: