beautypg.com

Setenv – HP Integrity NonStop H-Series User Manual

Page 356

background image

This file provides hibernate configuration to Caveat Emptor.

The content of the

hibernate.properties

file is:

##------------------------------------------------------------------------------
# SQL/MX Settings for JDBC Type 2 Driver
#hibernate.dialect org.hibernate.dialect.SqlmxDialect
#hibernate.connection.driver_class com.tandem.sqlmx.SQLMXDriver
#hibernate.connection.url jdbc:sqlmx://
#hibernate.connection.username
#hibernate.connection.password
#hibernate.connection.catalog auctioncat
#hibernate.connection.schema auctionsch

#-------------------------------------------------------------------------------
# SQL/MX Settings for JDBC Type 4 Driver
#hibernate.dialect=org.hibernate.dialect.SqlmxDialect
#hibernate.connection.driver_class com.tandem.t4jdbc.SQLMXDriver
#hibernate.connection.url jdbc:t4sqlmx://:
#hibernate.connection.username
#hibernate.connection.password
#hibernate.connection.catalog auctioncat
#hibernate.connection.schema auctionsch

#For JDBC Type 4 Driver:
#
# - This is the IP address of your NonStop system
# - This is the Port Number of JDBC Data Source
# - This is the HP NonStop system UserName
# - This is the HP NonStop system Password

setenv

(

<My SASH Home>\hibernate\samples\eg\setup\setenv

)

This script file is used to set the Hibernate and JDBC libraries in the NonStop environment. The
content of this script file is:

#!/bin/ksh
hibernatehome=”
t4jdbc=”
t2jdbc=”

Usage="\n Usage: ./setenv \n\n For JDBC/MX Type2 driver use 'T
2'\n For JDBC/MX Type4 driver use 'T4'\n"

usage()
{
echo $Usage
exit
}

if [ $# -ne 1 ] ;
then
usage
fi

if [ $1 != "T2" ] && [ $1 != "T4" ] ;
then
usage
fi

################################################################################
#CLASSPATHs for JDBC/MX Type 2 Drivers

if [ $1 = T2 ];
then
export CLASSPATH=$CLASSPATH:$t2jdbc/lib/jdbcMx.jar
export CLASSPATH=$CLASSPATH:$t2jdbc/lib/libjdbcMx.so
export _RLD_LIB_PATH=$t2jdbc/lib
fi

################################################################################

356

Customizing Sample Application

This manual is related to the following products: