CORBA 2.3.3 Programmer's Guide for C++ (NonStop CORBA 2.3.3+)
Table Of Contents
- CORBA 2.3.3 Programmer's Guide for C++
- Legal Notice
- Contents
- About This Guide
- Chapter 1. Introduction to NonStop CORBA Programming
- Chapter 2. NonStop CORBA Administrative Environment
- Chapter 3. Compiling and Building an Application
- Chapter 4. Deploying a NonStop CORBA Application
- Chapter 5. Tracing and Debugging Applications
- Chapter 6. Writing Scalable Applications
- Chapter 7. Managing Transactions
- Chapter 8. Writing Multithreaded Applications
- Chapter 9. Designing Advanced Applications
- Chapter 10. Porting CORBA Applications to NonStop CORBA
- Chapter 11. Writing Wrappers for Legacy Clients and Servers
- Appendix A. Architectural Walkthrough
- Appendix B. Object References
- Appendix C. Servant Reference Counting in NonStop CORBA
- Index

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.
#
# Usage: start_server [-v] [-d]
#
# The -v option displays the input used to configure the server class.
# The -d option causes extra application output to be displayed.
# This output is directed to the file "server.log".
#
export PATHMON=smon
export SERVER_CLASS=BANK-SERVER
# Get options if supplied
while getopts ":vd" opt; do
case $opt in
v ) VERBOSE="-v" ;;
d ) APPL_TRACE_ENABLED="set server env BANK_CFG_LOG=TRUE" ;;
\? ) print "usage: start_server [-v] [-d]"
return 1
esac
done
shift $(($OPTIND - 1))
print "Configuring $SERVER_CLASS"
# Set G_HOMETERM to the terminal identifier on which standard
# output is displayed.
if [[ -z "$HOMETERM" ]] then
# HOMETERM variable was not set explicitly, construct
# the Guardian form of the home terminal identifier
#
# Get information about current terminal
ID=$(who -m)
# Strip off user name
TEMP=${ID#*\ }
# Get the terminal name
set -A O_HOMETERM $TEMP
# Get tcp process name
TEMP=${TEMP##*/G/}
TCP_PROCESS=${TEMP%%/*}
# Get Guardian form of home terminal
G_HOMETERM=\$$TCP_PROCESS.${O_HOMETERM##*/}
else
G_HOMETERM=\$ZTNT.$HOMETERM
fi
[[ -n $VERBOSE ]] && print "Standard output will appear on $G_HOMETERM"