Manual

the hibernatehome variable must be set to
hibernatehome=/usr/tandem/sash/hibernate-3.2.6
b. Set the value of JDBC/MX driver locations.
If you plan to use the JDBC/MX Type 2 driver, set the value of t2jdbc variable
to the <JDBC T2 installation directory> OSS directory.
For example, if <JDBC T2 installation directory> is /usr/tandem/
jdbcMx/current, the t2jdbc variable must be set to
t2jdbc=/usr/tandem/jdbcMx/current
If you plan to use JDBC/MX Type 4 driver, set the value of the t4jdbc variable to
<NonStop SASH Home> OSS directory.
For example, if <NonStop SASH Home> is /home/sash_usr/sash, the t4jdbc
variable must be set to t4jdbc=/home/sash_usr/sash
c. Set the execute permissions of setenv script file, using the OSS command:
OSS> chmod +x setenv
d. Run the setenv script file.
If you plan to use the JDBC/MX Type 2 driver, set the environment using the
command:
OSS> . ./setenv T2
If you plan to use the JDBC/MX Type 4 driver, set the environment using the
command:
OSS> . ./setenv T4
2. Create a directory in OSS to place the script files, using the command:
OSS> mkdir p <NonStop SASH Home>/hibernate/samples/eg/setup
For example:
OSS> mkdir p /home/sash_usr/sash/hibernate/samples/eg/setup
NOTE: It is suggested that you create hibernate/samples/eg/setup directory structure
in <NonStop SASH Home>.
3. Copy the setenv script file from <My SASH Home>\hibernate\samples\eg\setup
to <NonStop SASH Home>/hibernate/samples/eg/setup
Deploying Caveat Emptor on NonStop
To deploy Caveat Emptor on your NonStop system, you must transfer the application JAR file
(caveatemptor.jar) from <My SASH Home>\hibernate\eg\dist Windows directory to
<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, using the command:
OSS> cd <NonStop SASH Home>/hibernate/samples/eg
For example:
OSS> cd /home/sash_usr/sash/hibernate/samples/eg
2. Extract the application JAR file (caveatemptor.jar), using the command:
OSS> jar xvf caveatemptor.jar
3. Run the Caveat Emptor application, using the command:
OSS> java org.hibernate.auction.Main
304 Installing Hibernate Framework