Contents

1. A Simple Application

About This Guide

Organization of the Guide

Assumptions

Documentation Roadmap

About This Chapter

Some Preliminaries

The simpapp Tutorial

Step 1: Copy the simpapp Files

Step 2: Examine the Client Program

References

Step 3: Compile the Client

References

Step 4: Examine the Server

References

Step 5: Compile the Server

References

Step 6: Edit the Configuration File

References

Step 7: Load the Configuration File

References

Step 8: Boot the Application

References

Step 9: Enter a Request

Step 10: Using tmadmin

References

Step 11: Shut Down the Application

References

Summary

2. bankapp Files

Directory Structure for bankapp

Files

Edit bankvar to Set Environment Variables

Additional PATH Component for SunOS

3. bankapp Client Programs

A Look at bankapp Client Programs

System Client Programs

Mask Source Code

Using mio(1)

Buffer Types

Using ud(1)

audit.c: A Request/Response Client

audit.c Source Code

auditcon.c: A Conversational Client

auditcon.c Source Code

bankmgr.c: A Client that Monitors Events

Building Client Programs

References

4. bankapp Servers

A Look at bankapp Servers

Request/response Servers

A Conversational Server

Service Definitions

Service Algorithms

Utilities Incorporated into Servers

Building Servers

Using the buildserver Command in the bankapp

The ACCT Server

The BAL Server

The BTADD Server

The TLR Server

The XFER Server

Servers Built in bankapp.mk

Alternative Way to Code Services

References

5. The bankapp Makefile

A Look at the bankapp Makefile

Editing bankapp.mk

TUXDIR

APPDIR

NATIVE and Other /Host Parameters

Resource Manager

Running bankapp.mk

6. Databases for bankapp

Resource Manager Options for bankapp

The System/D RM and bankapp

Create Database in SHM Mode

Create the Database in MP Mode

Failure with a semget Error

Using an XA-compliant RM with bankapp

Changes to bankvar

Changes to the bankapp Services

Change to bankapp.mk

Changes to crbank and crbankdb

Changes to the Configuration File

Using a non-XA Compliant RM with bankapp

Changes to bankvar

Changes to the bankapp Clients and Services

Changes to bankapp.mk

Changes to crbank and crbankdb

Changes to the Configuration File

Changes to the Driver Scripts

7. Edit bankapp Configuration Files

Configuration Files for bankapp

Notes to Listing 7-1

References

8. Create tuxconfig, tlog; Start tlisten

Creating tuxconfig, tlog tlisten

Loading the Configuration File

Creating the TLOG

Starting tlisten

Stopping tlisten

Error Messages from tlisten Problems

References

9. Boot the Application; Populate the Database

tmboot and populate

Checking IPC Resources

Executing tmboot

The Userlog: ULOG

Running the populate Script

References

10. Run bankapp

Run the Application

The bankapp run Script

Running the audit Client Program

Running auditcon

Using the driver Program

Using tmadmin

Shutting Down bankapp

References