CORBA 2.3.3 Programmer's Guide for Java
Server-pool server
Servers running as server pools require you to set up the environment in a Pathway 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, Compaq recommends using a script. If you are not familiar with configuring
Pathway environments, see the 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
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
set pathway maxparams 8
set pathway maxserverclasses 4
set pathway maxserverprocesses 40
set pathway maxstartups 40