Deploying caveat emptor on nonstop, Running caveat emptor on nonstop, The eventmanager web application – HP Integrity NonStop J-Series User Manual

Page 163: Building eventmanger on windows

Advertising
background image

OSS> chmod +x setenv

5.

Run the setenv script file:

To use the JDBC Type 2 driver, type:

OSS> . ./setenv T2

To use the JDBC Type 4 driver, type:

OSS> . ./setenv T4

Deploying Caveat Emptor on NonStop

To deploy Caveat Emptor on a NonStop system, transfer the application JAR file
(caveatemptor.jar) from the <My SASH Home>\hibernate\eg\dist Windows directory
to the <NonStop SASH Home>/hibernate/samples/eg OSS directory.

Running Caveat Emptor on NonStop

To run Caveat Emptor, complete the following steps:

1.

Go to <NonStop SASH Home>/hibernate/samples/eg:

OSS> cd <NonStop SASH Home>/hibernate/samples/eg

For example:

OSS> cd /home/sash_usr/sash/hibernate/samples/eg

2.

Extract the caveatemptor.jar file:

OSS> jar -xvf caveatemptor.jar

3.

Run the Caveat Emptor application:

OSS> java org.hibernate.auction.Main

When org.hibernate.auction.Main is run, Caveat Emptor performs the following actions:

Populates database tables with sample data

Displays auction details

Modifies user details

Modifies item description

Displays the auction done by a particular user

Displays auction by its description

The EventManager Web Application

The EventManager web application is an event management system. The EventManagerServlet
lists all events stored in the database, and provides an HTML form to enter new events.

This section describes the following steps for the EventManager sample application.

“Building EventManger on Windows” (page 163)

“Setting up the SQL/MX database on NonStop” (page 166)

“Deploying JPetStore on NonStop” (page 48)

“Running EventManager on NonStop” (page 169)

Building EventManger on Windows

To build EventManger on a Windows system, complete the following steps:
1.

Go to the <My SASH Home>\hibernate\samples\web directory on the Windows system.
Among other files, this directory must include the following sub-directories:

Deploying and Running Sample Hibernate Applications on NonStop

163

Advertising
This manual is related to the following products: