beautypg.com

HP Integrity NonStop H-Series User Manual

Page 299

background image

1.

Download

DIALECT

file from Scout for NonStop Servers.

2.

Add

.zip

extension to it.

3.

Extract

DIALECT.zip

file to a location on your Windows system.

The

SQL/MX-Hibernate-Dialect

folder containing

hibernate3sqlmx.jar

appears.

NOTE:

If you have already extracted the

SAMPLE

file from Scout for NonStop Servers, you

can get the

hibernate3sqlmx.jar

file at

<My SASH Home>\hibernate\sqlmxdialect.

Your Hibernate distribution is now ready to be transferred to your NonStop system.

NOTE:

hibernate3sqlmx.jar

is the Hibernate dialect file for SQL/MX database that maps

Hibernate queries (HQL) to SQL/MX specific queries.

Copying Hibernate Distribution from Windows to NonStop

To copy the Hibernate distribution from your Windows system to your NonStop system, complete
the following steps:

1.

Go to

and create a JAR of the

<Hibernate Home>\lib

directory

on your Windows system using the command:

command prompt> cd “

command prompt> jar –cvf hibernate_lib.jar lib

For example:

command prompt> cd “C:\hibernate-3.2”

command prompt> jar –cvf hibernate_lib.jar lib

2.

Create a version-specific Hibernate directory

<NonStop Hibernate Home>

in the OSS

environment on your NonStop system using the command:

OSS> mkdir -p

For example, create a directory structure

/usr/tandem/sash/hibernate-3.2.6

as

follows:

OSS> mkdir -p /usr/tandem/sash/hibernate-3.2.6

3.

Copy the

hibernate_lib.jar

and

hibernate3.jar

files from your

Home>

to

and extract

hibernate_lib.jar

using the

OSS command:

OSS> cd

OSS> jar –xvf hibernate_lib.jar

After extraction,

must have the

<NonStop Hibernate

Home>/lib

sub-directory.

NOTE:

The contents of the

<NonStop Hibernate Home>/lib

directory on your

NonStop system must be exactly same as the

<Hibernate Home>\lib

directory on your

Windows system.

This completes the installation of Hibernate framework libraries on your NonStop system. You
can use these libraries when developing and running Hibernate applications on a NonStop
system.

Deploying and Running Sample Hibernate Application on NonStop

The sample application available in the Hibernate distribution is called Caveat Emptor.

Deploying and Running Sample Hibernate Application on NonStop

299

This manual is related to the following products: