CORBA 2.6 Programmer's Guide for Java

Server-pool client
Clients can run as server pools. You need to set up the environment in a NonStop TS/MP configuration.
Server-pool server
Servers running as server pools require you to set up the environment in a NonStop TS/MP configuration.
The sample script shown below illustrates how the environment is configured (this example is from the
Bank sample program supplied with NonStop CORBA).
For server-pool environments, HP recommends using a script. If you are not familiar with configuring NonStop
TS/MP environments, see the NonStop TS/MP System Management Manual (note that in TS/MP documentation,
server pools are called server classes). The following sample OSS script illustrates how the environment might be
configured:
In the following script, the trace settings have been disabled by placing the comment character open bracket [ in
front of the line. For more information about tracing see Tracing and Debugging Applications.
#
# Bank server PATHMON start-up and configuration script.
#
export PATHMON=jsmn
export SERVER_CLASS=BANK-SERVER
export CLASSPATH=".:$NSD_ROOT/lib/jorb.jar:$NSD_ROOT/lib/JTS.jar"
if [[ -z "$HOMETERM" ]] then
X=$(who -m)
CNT=$((1))
for i in $X; do
if ((CNT==2))
then
O_HOMETERM=$i
break
fi
((CNT+=1))
done
HOMETERM=$(basename $O_HOMETERM)
TCP_PROCESS=$(basename $(dirname $O_HOMETERM))
G_HOMETERM=\$$TCP_PROCESS.$HOMETERM
SLEEP_TIME=10000
else
O_HOMETERM=/G/ZTNT/$HOMETERM
G_HOMETERM=\$ZTNT.$HOMETERM
SLEEP_TIME=0
fi
gtacl -name /G/$PATHMON -nowait -p pathmon > $PWD/$PATHMON.log 2>&1 &
sleep 1
gtacl -p pathcom \$$PATHMON <<eof
set pathway maxassigns 8