|
|
Verifying the BEA Tuxedo Software Installation
To verify that you have successfully installed the BEA Tuxedo system software on a server platform, check the directory structure added to your system for the BEA Tuxedo system files, and try configuring and executing the sample application provided. This section describes the directory structure and provides instructions for running the sample application.
Checking the Directory Structure After BEA Tuxedo System Installation
When the BEA Tuxedo system is installed, the directories shown in the following diagram are created. This diagram reflects the directory structure when all packages in the BEA Tuxedo development environment are installed.
BEA Tuxedo System Directory Structure
The contents of each directory are described below. $TUXDIR is the base directory for the BEA Tuxedo system software. $TUXDIR must be an empty directory for which you have read, write, and search (execute) permissions.
Running a Sample Application
To verify that you have successfully installed the BEA Tuxedo system software on a server platform, run the simpapp application, which can be found in the directory $TUXDIR/samples/atmi/simpapp.
Note: Instructions for setting up and running simpapp through the BEA Administration Console are provided in the BEA Administration Console Online Help.
simpapp is a non-distributed application consisting of a server, client, and configuration file. This "simple application" converts strings from lowercase to uppercase. The server simpserv offers a single service called TOUPPER. The client simpcl is invoked with a single argument, which is a lower-case string to be converted to upper case. The server returns the converted string to the client, which prints it out.
For example, the invocation
simpcl "hello world"
results in the output
Returned string is: HELLO WORLD
Configuring and Running simpapp
To configure and run simpapp, complete the following 10-step procedure.
Note: This procedure is also provided in the README file in $TUXDIR/samples/atmi/simpapp, and in Tutorial for simpapp, a Simple C Application in Tutorials for Developing a BEA Tuxedo Application.
cd /home/me
mkdir workplace
cd workplace
Then set and export an environment variable for your working directory.
MYDIR=/home/me/workplace
export MYDIR
cp $TUXDIR/samples/atmi/simpapp/* .
chmod 755 simpserv simpcl
chmod 644 ubbsimple
Note: If compiled client and server programs are not available in your simpapp directory, you must compile the source files for them now by entering the following commands.
buildclient -o simpcl -f simpcl.c
buildserver -o simpserv -f simpserv.c -s TOUPPER
uname -n
TUXCONFIG=$MYDIR/tuxconfig
export TUXCONFIG
tmloadcf -y ubbsimple
tmboot -y
If the boot succeeds, output similar to the following is displayed and you can proceed to step 9.
Output produced by tmboot -y
Booting all admin and server processes in /home/me/workplace/tuxconfig
INFO: BEA TUXEDO(r) System Release 7.1
INFO: Serial #: 000102-9125503751, Maxusers 25
Booting admin processes ...
exec BBL -A:
process id=24180 ... Started.
Booting server processes ...
exec simpserv -A :
process id=24181 ... Started.
2 processes started.
can't create enough semaphores for BB
then the Interprocess Communication (IPC) resources configured in your operating system are not adequate for running simpapp.
To confirm this hypothesis, invoke the BEA Tuxedo system command tmloadcf(1) and specify the name of your configuration file, as shown in the following example.
tmloadcf -c $MYDIR/ubbsimple
If the current value of any IPC parameter configured in your operating system is less than a minimum (either variable or fixed) listed in the tmloadcf output, you must increase the value of that parameter. For instructions on determining and changing the current IPC values for your platform, see the data sheet for your platform in Platform Data Sheets.
simpcl "hello world"
The following is displayed.
Returned string is: HELLO WORLD
tmshutdown -y
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|