Installation Guide

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Sample Applications

This chapter provides instructions for running the simpapp sample applications delivered with Oracle Tuxedo for OpenVMS. The other sample applications are documented in the Read Me file located in the sample applications directory.

 


simpapp

This section provides a procedure for building, configuring, running, and shutting down a sample application based on simapp (a sample application delivered with Oracle Tuxedo).

Before you begin, make sure that:

Now you are ready to begin.

  1. Build the client and server executables (simpcl and simpserv, respectively):
    1. Verify that all the post-installation steps have been performed and that all the logical names and the symbols were created properly. Please see the "Post-Installation" chapter for more information.
    2. Copy all the files from DKA100:[Tuxedo.APPS.SIMPAPP] to DKA100:[TUXAPP]. The copied files include SIMPCL.C, SIMPSERV.C, README.vms, and UBBBSIMPLE.
    3. On the command line, generate the client executable:
      buildclient -o SIMPCL.EXE -f SIMPCL.C
    4. Define the symbol for SIMPCL.EXE:
      SIMPCL:==$ DKA100:[TUXAPP]SIMPCL.EXE
    5. Generate the server program:
      buildserver -o SIMPSERV.EXE -f SIMPSERV.C -s "TOUPPER"
  2. Modify UBBSIMPLE.
    1. Assign a unique integer value to IPCKEY.
    2. Assign DKA100:[TUXAPP] to APPDIR.
    3. Assign DKA100:[Tuxedo] to TUXDIR.
    4. Assign DKA100:[TUXAPP]TUXCONFIG to TUXCONFIG.
    5. Run the hostname command on your machine to determine the name of the machine. Then replace the machine_name entry with the name of your machine.
    6. Run the id command on your VMS machine to determine your UID and GID. Then change the UID and GID values in the *MACHINE section.
  3. Create a binary version of the UBBSIMPLE configuration file. A file named DKA100:[TUXAPP]TUXCONFIG will be created.
  4. $ tmloadcf -y UBBSIMPLE
  5. Boot the application.
  6. $ tmboot -y
  7. Run the simple client.
  8. $ simpcl abc

The simple client calls the TOUPPER service and specifies input: the string abc. TOUPPER converts the string to upper case (ABC) and sends the new string to the client.

  1. Shut down the Oracle Tuxedo sample application.
  2. $ tmshutdown -y 

  Back to Top       Previous  Next