This chapter describes the use of the TUXEDO System/T /Workstation under the OS/2 operating system
This instantiation offers significant benefits to application developers:
The major sections in this chapter cover:
System/T terms are defined in the BEA TUXEDO Glossary but we have extracted terms specific to this feature:
It is possible for OS/2 version 2.0 to execute Windows
applications, which in turn could call System/T's Windows DLL.
LAN WorkPlace for OS/2 permits System/T's Windows DLL to execute
in this environment.
The /Workstation DLL for OS/2 runs on Intel 80386 and above processors.
The machine on which the DLL is installed runs as a remote
machine to a TUXEDO machine.
The OS/2 DLL runs under the IBM OS/2 2.0 operating system for OS/2 character mode applications.
BEA TUXEDO provides a 32-bit DLL for OS/2 that supports the OS/2 2.x version of the operating system. The networking software for this version is IBM TCP/IP. For developing applications and 32 bit compiler can be used. The DLL was compiled using the IBM Cset 2 C++ compiler, which is also the reference compiler.
The TUXEDO server machine must have the TUXEDO System/T
Release 4.2 (or higher) and the /Workstation installed.
This section covers items specific to writing and building
TUXEDO System/T client programs to run under OS/2. They are
intended to supplement the material presented in the BEA TUXEDO Programmer's
Guide.
The ATMI and FML calls used in OS/2 client programs are much the same as described in the BEA TUXEDO Programmer's Guide. They must, however, be incorporated into OS/2 modules. The following things work slightly differently than they do in the UNIX environment.
for tperrno or tpurcode -- #include "atmi.h" for Ferror -- #include "fml.h" for Uunixerr -- #include "Uunix.h" for proc_name -- #include "userlog.h"
There is very little difference between writing C code for System/T client programs in this environment and writing them in the UNIX environment. For information on the ATMI calls, please refer to the BEA TUXEDO Programmer's Guide.
The special aspect of both MS-DOS and OS/2 character mode client programs is that you probably have to provide an application-specific form and menu handler. You might find it useful to look through the first two-thirds of the sample program, BANKAPP.C, provided with System/T. This program serves as the client program for both environments (the .MAK files copy BANKAPP.C to BANKAPPO.C for OS/2, and it is built with a -O flag and different libraries). This part of the sample program is a MS-DOS/OS/2 form and menu handler. If you don't already have similar (or more sophisticated) interfaces at your installation, you may want to adapt this for your application.
The final third of BANKAPP.C (beginning at line
805) is the bankapp application client.
For the 32 bit platform the IBM Cset 2 C++ compiler is supported.
When compiling System/T client programs, use the C preprocessor flag
-D_TM_OS2
When link editing your client programs, use buildclt(1) with the -O flag for OS/2 character mode clients.
The buildclt(1) utility also supports the Microsoft C and the IBM compiler. Use the -c option to specify the compiler type. "m" for microsoft and "i" for IBM.
If you do not want to use buildclt(1) and use the C compiler directly. When compiling, use the C preprocessor flag
-D_TM_OS2
and while linking specify OTUXWS.LIB as an input library for
OS/2.
When you run client programs, your PATH and LIBPATH must
include $TUXDIR/bin.
The following is a list of limitations that apply to the present release of the System/T OS/2 DLL.