Airlines SDK Help Globe Icon

Configuring BEA Tuxedo as a Server Samplecode

The server is implemented as a BEA Tuxedo service that uses the Attachmate e-Vantange SDK to accomplish its host communications.

Note The machine on which you wish to run the service on must have the Attachmate Host Access Server and e-Vantage SDK installed on it, as well as the BEA Tuxedo software.

Preparing and Building the Service

To build the service
  1. Create a new Microsoft Visual C/C++ project, or open an existing project.

  2. From the View menu, select ClassWizard.

  3. On the Message Maps tab of the MFC ClassWizard dialog box, click Add Class, and then select From a Type Library.

  4. Access the Attachmate e-Vantage Airlines SDK installation directory. (By default, the SDK is installed in: C:\Program Files\Attachmate\evSDK.)

  5. From the Import From Type Library dialog box, select SessionLoader.Dll and ScreenUts.Dll (in the evSDK directory), and then click Open.

    Note With some development tools, you may have to open each file separately. Also, if you use other evSDK classes (for example, ScreenAlc.dll or Mutable.dll), you may have to import them as well.
  6. From the Confirm Classes dialog box, click OK to confirm the selected object.
  7. The selected objects appear on the ClassView page.

  8. Add the Attachmate e-Vantage Airlines SDK Include directory (containing evSDKDefs.h) to your Include path.

    The default location of this directory is:

    C:\Program Files\Attachmate\evSDK\Include

  9. Add evSDKDefs.h to your project.

Prior to using the sample service, you must modify the "ubbdemo" file, which contains information on how the service interfaces with Tuxedo.

To modify the ubbdemo file
  1. On line 28, replace <machine_name> with the actual machine name.

  2. On line 45, replace <IPAddress> with the machine's actual IP Address, and <Port> with an available port number (for example, 111.222.333.444:5555).

  3. Change the path and directory names in the DEFAULTS section (D:\Tuxedo\apps\..) to the location where you installed the software on your machine.

    In this sample, the application directory is assumed to be \Tuxedo\apps\atm-svr.

  4. Note You can generate a Tuxedo TuxConfig configuration file with the command tmloadcf -y ubbdemo.

Prior to using the sample service, you must also modify the "Setenv.cmd" file to match your system.

To modify the Setenv.cmd file
  1. Replace <IPAddress> with the machine's actual IP Address, and <ServerPort> with the server's port number (for example, 111.222.333.444:5555).

    This information must match what you have put in the server's ubbdemo file.

  2. Enter the appropriate path and directory names of where you have placed the example server.

    In this sample, the application directory is assumed to be Tuxedo\apps\atm-svr.

    Note The sample is built with the Microsoft C/C++ Version 6.0 Compiler. You can build the sample client with nmake -f sdkdemo.mak. If you are using a different compiler or language, you will have to make the appropriate adjustments to the environment and the makefile.
Related Topics
Development Tools Supported
Sample Applications Overview