HP Integrity NonStop J-Series User Manual

Page 165

Advertising
background image

NOTE:

The hibernate.properties file, located in <My SASH

HOME>\hibernate\samples\web\src\main\resources

, has the database

catalog name set to eventcat and schema name set to eventsch. If the database
catalog name eventcat and schema name eventsch already exists, or if you
want to use a different database catalog and schema name, modify the:

values for the hibernate.connection.catalog and
hibernate.connection.schema

property in the hibernate.properties

file in <My SASH
HOME
>\hibernate\samples\web\src\main\resources

.

database catalog and schema names in the eventmanager_script.sql
script file, as discussed in

“Setting up the Deployment Environment on NonStop”

(page 161)

.

3.

Build the EventManager web application archive WAR file
(hibernate-tutorial-web-3.5.0-CR-2.war).
1.

Go to the <My SASH Home>\hibernate\samples\web directory:

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

2.

Build the Event Manager web archive using JDBC Type 2 driver or JDBC Type 4 driver.

To use the JDBC Type 2 driver:

Build the Event Manager web archive:

1.

command prompt> mvn clean package

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 hibernate3sqlmx.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\hibernate3sqlmx.jar

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

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

.

To use the JDBC Type 4 driver:
1.

Build the Event Manager web archive:

command prompt> mvn clean package

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 hibernate3sqlmx.jar and t4sqlmx.jar to the <My SASH
Home
>\hibernate\samples\web\target\WEB-INF\lib

directory.

Deploying and Running Sample Hibernate Applications on NonStop

165

Advertising
This manual is related to the following products: