beautypg.com

Setting up the sql/mx database on nonstop – HP Integrity NonStop J-Series User Manual

Page 105

background image

The hibernate-tutorial-web-3.5.0-CR-2.war file is created in the <My
SASH Home
>\hibernate\samples\web\target

directory.

2.

Create the WEB-INF\lib folder in the <My SASH
Home
>\hibernate\samples\web\target

directory.

3.

Copy the hibernate35sqlmx.jar file to the <My SASH
Home
>\hibernate\samples\web\target\WEB-INF\lib

directory.

4.

Go to <My SASH Home>\hibernate\samples\web\target and run the
following commands:

command prompt> cd <My SASH Home>\hibernate\samples\web\target

command prompt> jar uf hibernate-tutorial-web-3.5.0-CR-2.war WEB-INF\
lib\hibernate35sqlmx.jar

The hibernate35sqlmx.jar file is copied to the <My SASH
Home
>\hibernate\samples\web\target\

hibernate-tutorial-web-3.5.0-CR-2.war\WEB-INF\lib

directory.

NOTE:

If you are using the JDBC Type 4 driver:

In step 3, copy the t4sqlmx.jar file also to the \WEB-INF\lib directory in addition
to the hibernate35sqlmx.jar file.

In step 4, run this jar command:

jar uf hibernate-tutorial-web-3.5.0-CR-2.war

WEB-INF\lib\hibernate35sqlmx.jar WEB-INF\lib\t4sqlmx.jar

Setting up the SQL/MX database on NonStop

1.

Edit the <My SASH
Home
\hibernate\samples\web\dbconfig\eventmanager_script.sql

file as

follows:

<$datavol>

: specify the Guardian volume for the primary partition of the table. For

example: $data01.

: specify the owner of the schema. For example: super.sashusr.

: specify the location of the metadata tables for the catalog. For example:

\NSK01.$data01.

: specify the designated subvolume name for the schema. For

example: SASH1.

NOTE:

The subvolume name is always prefixed by ZSD and must have eight characters

(including ZSD).

2.

Create a directory in OSS to place the database script files:

OSS> mkdir -p <NonStop SASH Home>/hibernate/samples/web/dbconfig

For example:

OSS> mkdir -p /home/sash_usr/sash/hibernate/samples/web/dbconfig

NOTE:

<NonStop SASH Home> can be any working directory. It is suggested that you

create the hibernate/samples/web/dbconfig directory structure in <NonStop SASH
Home

>.

Installing the Hibernate Framework 105

This manual is related to the following products: