Running employeeinfo on nonstop – HP Integrity NonStop H-Series User Manual
Page 352
NOTE:
To view the contents of the
ei_setenv
script, see the
section.
4.
Edit the
ei_setenv
script as follows:
1.
Set the value of the
hibernatehome
variable to the
<NonStop Hibernate Home>
OSS directory.
For example, if
<NonStop Hibernate Home>
is /
usr/tandem/sash/
hibernate-3.2.6
, the
hibernatehome
variable must be set to
hibernatehome=/
usr/tandem/sash/hibernate-3.2.6
2.
Set the value of the JDBC/MX driver locations.
a.
If you plan to use the JDBC/MX Type 2 driver, set the value of the
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.
b.
If you plan to use the JDBC/MX Type 4 driver:
•
Copy the JDBC Type 4 driver
JAR
file,
t4sqlmx.jar
, from
<JDBC T4
installation directory>\lib
the Windows directory to an OSS directory
on your NonStop system.
•
Replace
<NonStop T4 Location>
with the absolute path of the OSS
directory where you have kept the
t4sqlmx.jar
file.
For example, if
<NonStop T4 Location>
is
/home/sash_usr/sash/
jdbct4
, the
t4jdbc
variable must be set to
t4jdbc=/home/sash_usr/
sash/jdbct4
.
NOTE:
To view the contents of the
ei_setenv
script file, see the
section.
c.
Set the execute permissions of the
ei_setenv
script file using the OSS command:
OSS> chmod +x ei_setenv
5.
Run the
ei_setenv
script file to set the JDBC environment and include the dependency
JAR
files in the CLASSPATH.
•
If you plan to use the JDBC/MX Type 2 driver, set the environment using the command:
OSS> . ./ei_setenv T2
•
If you plan to use the JDBC/MX Type 4 driver, set the environment using the command:
OSS> . ./ei_setenv T4
Running EmployeeInfo on NonStop
To run the EmployeeInfo on NonStop systems, complete the following steps:
1.
Go to the
<NonStop SASH Home>/hibernate/my_samples/employeeinfo
directory
on your NonStop system.
2.
Un-JAR the contents of the application
JAR
file
EmployeeInfo.jar
using the command:
OSS> jar –xvf EmployeeInfo.jar
352
Getting Started with Hibernate