WebLogic Server (WLS) 7.0
Pet Store Sample Application
HP NonStop Server Platform Guide for WebLogic Server—525779-001
6-2
Running the PointBase Form of Pet Store
Running the PointBase Form of Pet Store
To run the PointBase form of Pet Store, use the startPetStore.sh script:
ksh [128] cd $WL_HOME/samples/server/config/petstore
ksh [129] . ./startPetStore.sh
Running the SQL/MX Form of Pet Store
During installation of the HP NonStop Server Toolkit, the files for the Pet Store sample
application are copied to a separate location:
$BEA_HOME/user_projects/hpns/samples/server
This location can be used to run the NonStop SQL form of Pet Store immediately after
installation. For example, use this to check for successful installation of the Toolkit.
ksh [130] SAMPLES=/usr/bea/user_projects/hpns/samples/server
ksh [131] cd $SAMPLES/config/petstore
ksh [132] ./whichPetStore.sh -w $SAMPLES
whichPetStore.sh: Examining files in /usr/bea/user_projects/hpns/
samples/server
whichPetStore.sh: Examined files use NonStop SQL/MX.
To run the sample application, ensure that environment variables are set and exported,
then use the startPetStore_NSSQL.sh script. For example:
ksh [134] export JAVA_HOME=/usr/tandem/nssjava/jdk131_v31
ksh [135] PATH=$PATH:$JAVA_HOME/bin
ksh [136] export JREHOME=$JAVA_HOME/jre
ksh [137] export WL_HOME=/usr/bea/weblogic700
ksh [138] cd $SAMPLES/config/petstore
ksh [139] . ./startPetStore_NSSQL.sh
startPetStore_NSSQL.sh: This appears to be the first time
you have run Pet Store in this directory.
Copying schema directory to
/usr/bea/user_projects/hpns/samples/server/config/petstore/schema ...
startPetStore_NSSQL.sh: This is a private copy of Pet Store, because you are
not under directory /usr/bea/weblogic700.
To prevent conflicts with other copies of Pet Store, please check the port
values in /usr/bea/user_projects/hpns/samples/server/config/petstore/
config.xml :
275: ListenPort=”7001”
295: ListenPort=”7002”
324: Arguments=”port=7001”
Please check the XA resource name in
/usr/bea/user_projects/hpns/samples/server/config/petstore/
startPetStore_NSSQL.sh :
72: -Dhp.nsk.xares.name=petstore \
Please check the SQL catalog, schema and subvol values in
/usr/bea/user_projects/hpns/samples/server/config/petstore/
schema/create_petdb.sh :
51:export CATSCH=$(id -un)
52:export SQLVOL=$(gtacl -c ‘who’ | grep ‘Current volume:’ | awk ‘{print $3’)