NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide—596210-006
3-36
The jdbc.config File
Example 3-42. The jdbc.config File
#
# VERSION=6.1.0
#
#######################################################################
#
# This file contains the JDBC/MP and JDBC/MX configuration.
#
#
#
# If the CLASSPATH contains sqlmp.jar and/or jdbcMx.jar, then first
# add those to the User ClassPath TCL variable USRCP.
#
if { [info exists env(CLASSPATH)] } {
foreach i [split $env(CLASSPATH) ":"] {
if {[string first "sqlmp.jar" $i] > 0} {append USRCP ":" $i}
if {[string first "jdbcMx.jar" $i] > 0} {append USRCP ":" $i}
}
}
#
# Append the sqlmp.jar file (if it exists) from the JDBC/MP location
# specified when the "setup" script was run.
#
# NOTE: If your CLASSPATH contains sqlmp.jar, then that version will be
# used and will automatically override the add/append done below.
#
#
set jdbcMp_JarFile /usr/tandem/jdbcMp/current/lib/sqlmp.jar
if { [file exists $jdbcMp_JarFile] } {
append USRCP ":$jdbcMp_JarFile"
}
#
# Append the jdbcMx.jar file (if it exists) from the JDBC/MX location
# specified when the "setup" script was run.
#
# NOTE: If your CLASSPATH contains jdbcMx.jar, then that version will
# be used and will automatically override the add/append done below.
#
#
set jdbcMx_JarFile /usr/tandem/jdbcMx/current/lib/jdbcMx.jar
if { [file exists $jdbcMx_JarFile] } {
append USRCP ":$jdbcMx_JarFile"
}
#################################################################
#
# Define the jdbc/Mx library location
#
set jdbcMx_LIB_PATH /usr/tandem/jdbcMx/current/lib
#
# Define the jdbc/Mp library location
#
set jdbcMp_LIB_PATH /usr/tandem/jdbcMp/current/lib