6.21.1 Running simpapp to Verify the Oracle Tuxedo CORBA C++ Software Installation on a UNIX System
To configure and run the CORBA version of simpapp
on a UNIX system, follow these steps:
- Log in to the target machine as the Oracle Tuxedo application administrator and open a command-line shell.
- Create a working directory for your sample application and change to
it:
prompt> cd /home/me prompt> mkdir corba prompt> cd corba
- Make sure that the product directory in which you installed the Oracle Tuxedo software is set in the TUXDIR environment variable. For example, if you installed the software in the
/home/oracle/tuxedo12cR1
directory, set and exportTUXCONFIG
as follows:prompt> TUXDIR=/home/oracle/tuxedo12cR1 prompt> export TUXDIR
- Copy the
simpapp
files to your working directory and change the permissions on all files to allow full access. For example:prompt> cp $TUXDIR/samples/corba/simpapp/* . prompt> chmod 777 *
- Ensure that
make
is in your path. - To run
simpapp
automatically, enter../runme.ksh
. Thesimpapp
application runs and prints the following messages:Testing simpapp cleaned up prepared built loaded ubb booted ran shutdown saved results PASSED
- To run
simpapp
manually to observe the processes starting and stopping, follow these steps:- prompt>
ksh
- prompt>
../results/setenv.ksh
- prompt>
tmboot -y
The application starts several processes.
- prompt>
simple_client
The prompt
String?
is displayed. - prompt>
enter_a_word_in_lowercase_letters
The application converts the word to uppercase and then to lowercase letters and displays the results.
- prompt>
tmshutdown -y
- The application shuts down the processes.
- prompt>
- To restore the directory to its original state, follow these steps:
- prompt>
../results/setenv.ksh
- prompt>
make -f makefile.mk
clean
- prompt>