NonStop Server Guide for BEA WebLogic Server 8.1

HP NonStop Server Guide for BEA WebLogic Server 8.1529891-001
10-1
10 Sample Application
WebLogic Server Sample Application
Running MedRec Application in the Installed WebLogic Server Location
Accessing MedRec from a Web Browser
Running MedRec in Another Location
WebLogic Server Sample Application
MedRec is a sample reference application that demonstrates the BEA WebLogic
Server features.
If you are running with NonStop SQL/MX Version 2.0 Native Tables, the SQL/MX
directory is medrec_sqlmx.
If you are running with NonStop SQL/MX Version 2.0 MX Tables, the SQL/MX
directory is medrec_sqlmx2.
For optimal performance on the NonStop server, MedRec uses NonStop SQL/MX.
Running MedRec Application in the Installed WebLogic Server
Location
The easiest place to run MedRec is in the installed location which, by default, is
/usr/bea/weblogic81. However, running MedRec in the installed location changes
files in the installed directories, which can cause problems for other users who want to
run private copies of MedRec. Also, you need write access to the installation
directories.
Before you run MedRec or other applications with WebLogic Server, ensure that the
NonStop server is using the correct software prerequisites and your shell environment
has correct values.
Note that the MedRec sample application accesses the internet. If your server requires
a proxy to access the internet, edit the startMedRecServer.sh command
procedure to set -Dhttp.proxyHost, -Dhttp.proxyPort, and
-Dhttp.nonProxyHosts.
Set and export environment variables for use of NonStop Server for Java 4.0 and
NonStop TCP/IPv6. For example:
ksh [125] export JAVA_HOME=/usr/tandem/java
ksh [126] export PATH=$JAVA_HOME/bin:$PATH
ksh [127] export WL_HOME=/usr/bea/weblogic81
ksh [128] add_define =PTCPIP^FILTER^KEY class=map file=mykey
If your NonStop TCP/IPv6 process is not named $ZTC0, create a define so that
WebLogic Servers started by this shell use NonStop TCP/IPv6. For example:
ksh [129] add_define =TCPIP^PROCESS^NAME class=map file=\$ZSM1
It is recommended that you save these commands in a file, such as your .profile.