BEA Logo BEA Tuxedo Release 7.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   Tuxedo Doc Home   |   Programming   |   Topic List   |   Previous   |   Next   |   Contents

   Using the BEA Tuxedo Workstation Component

Running BEA Tuxedo System Clients on a Workstation

After the client programs have been developed and tested, they can be moved to the workstations where they will be available to users.

Verifying the Directory Structure on Workstation Clients

The following table describes the directory structure on a Workstation client after you have installed the Workstation component of the BEA Tuxedo system.

UNIX Directory

Windows Directory

Description

$APPDIR

%APPDIR%

Contains the client executables. These executables are commonly kept in the directory from which the application is run.

$TUXDIR/bin

%TUXDIR%\bin

Contains BEA Tuxedo system commands and system clients such as wud.

$TUXDIR/cobinclude


%TUXDIR%\cobinclude

Contains copylib entries for use in COBOL programs.

$TUXDIR/include

%TUXDIR%\include

Contains BEA Tuxedo system header files such as atmi.h.

$TUXDIR/lib

%TUXDIR%\lib

Contains runtime libraries.

$TUXDIR/locale/C

%TUXDIR%\locale\C

Contains message catalogs for the default locale (U.S. English).

$TUXDIR/samples

%TUXDIR%\samples

Contains several subdirectories with sample applications.

Setting Environment Variables

Workstation clients make use of several environment variables. The following table shows the environment variables that are checked by tpinit(3c) or TPINITIALIZE(3cbl) when the workstation client attempts to join the application. See Defining Workstation Clients in Setting Up a BEA Tuxedo Application for details on setting these environment variables.

Environment Variable

Description

WSALLOWPRE71

Determines whether the workstation machine running BEA Tuxedo 7.1 or later software is allowed to interoperate with pre-Release 7.1 BEA Tuxedo applications. Setting the variable to Y (WSALLOWPRE71=Y) allows interoperability.

WSBUFFERS

The number of packets per application.

WSDEVICE

Device name to be used to access the network. This variable is only required when the BEA Tuxedo system is using the TLI networking interface.

WSENVFILE

Name of a file containing environment variable settings to be set in the client's environment.

WSFADDR

The network address used by the workstation client when connecting to the workstation listener or workstation handler. This variable, along with the WSFRANGE variable, determines the range of TCP/IP ports to which a workstation client will attempt to bind before making an outbound connection. This address must be a TCP/IP address.

WSFRANGE

The range of TCP/IP ports to which a workstation client process attempts to bind before making an outbound connection. The WSFADDR parameter specifies the base address of the range. The default is 1.

WSNADDR

The network address of the workstation listener (WSL) process through which clients gain access to the application. Use the value specified in the application configuration file for the workstation listener to be called. If the value begins with the characters 0x, the system interprets it as a string of hexadecimal digits; otherwise, the system interprets it as ASCII characters.

WSRPLYMAX

Maximum amount of core memory that ATMI functions use for buffering application replies before they are dumped to disk. Used by tpinit(3c) and TPINITIALIZE(3cbl). Replies obtained using tpgetrply(3c), TPGETRPLY(3cbl), and unsolicited messages are buffered in this area. When this area is filled with one or more messages, the overflow is written to a disk file. The system default limit is 256,000 bytes. Whether you use WSRPLYMAX to set a lower limit depends on the amount of available memory on your machine. Writing replies to disk causes a substantial reduction in performance.

WSTYPE

Workstation type. Used within tpinit(3c) and TPINITIALIZE(3cbl) when invoked by a workstation client to negotiate encode/decode responsibilities with the native site. If you do not specify WSTYPE, the system performs encoding, even if it is also unspecified on the native site.You must explicitly specify the same WSTYPE value for both sites to ensure that the encode/decode feature is turned off.

Other environment variables may be needed by Workstation clients on a UNIX workstation depending on the BEA Tuxedo system features being used. The compilation(5) reference page in BEA Tuxedo File Formats and Data Descriptions Reference explains which variables are needed under what circumstances.

Creating an Environment File

If you have created an environment file, it is read when tpinit(3c) or TPINITIALIZE(3cbl) is called. The following listing shows a sample file that could be used for two different applications.

Environment File


TUXDIR=/opt/tuxedo
[application1]
;this is a comment
/* this is a comment */
#this is a comment
//this is a comment
set FIELDTBLS=app1_flds
set FLDTBLDIR=/opt/app1/udataobj
[application2]
FIELDTBLS=app2_flds
FLDTBLDIR=/opt/app2/udataobj


The format of the file is as follows:

Using tuxreadenv

When you call the tuxreadenv(3c) function, it reads the environment file and adds the environment variables to the environment for the entire process, independent of platform. These variables are available using tuxgetenv(3c) and can be reset using tuxputenv(3c).

void tuxreadenv(char *file, char *label)

If file is NULL, then a default file name is used. The default file names for various platforms are as follows:

If the value of label is NULL, then only variables in the global section are put into the environment. For other values of label, the global section variables plus any variables in a section matching the label are put into the environment.

An error message is printed to the userlog under the following conditions:

Each time tpinit(3c)is called (either explicitly or implicitly by calling another ATMI function), tuxreadenv(3c) is called automatically in Workstation clients. If WSENVFILE is set in the environment, then it designates the environment file; otherwise, NULL is passed to tuxreadenv() for the file name so that the default file is used. If WSAPP is set in the environment, then it is to be used as the section label in the environment file; otherwise, NULL is passed to tuxreadenv() for the label name. Application clients may also call tuxreadenv() explicitly.

The environment is implemented and available in different ways on different platforms. A uniform interface to the environment is provided via the existing tuxgetenv(3c) and tuxputenv(3c) functions. These functions provide access to the following:

See Also