Creating a Tuxedo Server

A BEA Tuxedo server is a process that provides one or more services to a client. To build server processes, applications combine their service subroutines with a controlling program provided by the BEA Tuxedo system. Using ACUCOBOL-GT, this involves the following steps:

  1. Create and compile an ACUCOBOL-GT program that performs a specific task or service.
  2. Create a configuration file for the service to establish the identifiers
  3. Edit the "appinit.c" program (provided by BEA) to include runtime initialization and shutdown functions specific to ACUCOBOL-GT.

    The program calls the standard BEA Tuxedo ATMI initialization and shutdown subroutines tpsvrinit() and tpsvrdone(). The tpsvrinit routine calls two functions: tpopen opens the resource manager, and userlog posts a message that the server has started. The tpsvrdone routine also calls a tpclose function, which closes the resource manager

  4. Link the ACUCOBOL-GT runtime libraries into the controlling program provided by the BEA Tuxedo system.

    On UNIX/Linux servers, use the buildserver command, adding the ACUCOBOL-GT runtime libraries. Acucorp supplies a makefile that can be used to simplify this process.

    On Windows servers, relink the required Tuxedo libraries into the ACUCOBOL-GT runtime DLL, then issue the buildserver command with the ACUCOBOL-GT runtime libraries.