BEA Logo BEA Tuxedo Release 7.1

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

 

   Tuxedo Doc Home   |   Getting Started   |   Topic List   |   Previous   |   Next   |   Contents

   Tutorials for Developing a BEA Tuxedo Application

Learning About the bankapp Files

The files that make up the bankapp application are delivered in a directory called bankapp, which is positioned as follows.

Exploring the Banking Application Files

The bankapp directory contains the following files:

The following table lists the files of the banking application. The table lists the source files delivered with the BEA Tuxedo software, files that are generated when the bankapp.mk is run, and a summary of the contents of each file.

Description of the Banking Application Files

Source File

Generated File

Contents

ACCT.ec

ACCT.c, ACCT.o, ACCT

Contains two services: OPEN_ACCT and CLOSE_ACCT to open and close accounts.

ACCTMGR.c

ACCTMGR

A server that subscribes to events and logs notifications. Contains WATCHDOG and Q_OPENACCT_LOG services.

AUDITC.c

AUDITC

Contains a conversational server that handles service requests from the client auditcon.

BAL.ec

BAL.c, BAL.o, BAL

Contains a set of services: ABAL, TBAL, ABAL_BID, and TBAL_BID that allow the audit client to obtain bank-wide or branch-wide account or teller balances.

BALC.ec

BALC.c, BALC.o, BALC

Contains two services: ABALC_BID, and TBALC_BID. These services are the same as TBAL_BID and ABAL_BID, except that TPSUCCESS is returned when a branch ID is not found, which allows auditcon to continue running.

bankmgr.c

bankmgr

A client program that subscribes to events of special interest.

BTADD.ec

BTADD.c, BTADD.o, BTADD

Contains two services: BR_ADD and TLR_ADD for adding branches and tellers to the database.

cracl.sh

-

A shell script that creates Access Control Lists to demonstrate the Access Control security level.

crqueue.sh

-

A shell script that creates application queues for use in event notification.

crusers.sh

-

A shell script that creates groups and users to demonstrate the authentication security level.

event.flds

-

A field table file used in the event feature.

FILES

-

A descriptive list of all the files in bankapp.

README

-

Installation and boot procedures for all platforms except Windows NT.

README.nt

-

Installation and boot procedures for the Windows NT platform.

README2

-

Documentation of additions to bankapp that demonstrate new features. The file is located in the samples/atmi/bankapp directory.

README2.nt

-

Documentation of additions to bankapp that demonstrate new features for the Windows NT platform. The file is located in the samples\atmi\bankapp directory.

RUNME.cmd


An interactive script to build, configure, boot, and shut down the application for Windows NT.

RUNME.sh

-

An interactive script to build, configure, boot, and shut down the application for UNIX.

showq.sh!

-

A shell script that displays the status and contents of a message queue.

TLR.ec

TLR.c, TLR.o, TLR

Contains three services: WITHDRAWAL, DEPOSIT, and INQUIRY.

usrevtf.sh

-

A shell script that creates an ENVFILE for the BEA Tuxedo server TMUSREVT.

XFER.c

XFER.o, XFER

Contains TRANSFER service.

aud.v

aud.V, aud.h

An FML view used to define the structure passed between the audit client and the BAL server.

appinit.c

appinit.o

Contains customized versions of tpsvrinit() and tpsvrdone() for all servers other than TLR.

audit.c

audit.o, audit

A client that obtains bank-wide or branch-wide account and teller balances via the ABAL, TBAL, ABAL_BID, and TBAL_BID services.

auditcon.c

auditcon

An interactive version of audit that uses conversations and four services: ABAL, TBAL, ABALC_BID, and TBALC_BID.

bankapp.mk

-

An application makefile for UNIX.

bankapp.nt

-

An application makefile for Windows NT.

bank.flds

bank.flds.h

A field table file containing bank database fields and auxiliary FML fields used by servers.

bank.h

-

Contains data definitions pertinent to multiple C programs in the application.

bankvar

-

Contains some environment variables for bankapp. Other environment variables are defined in ENVFILE, but because ENVFILE is set from within bankvar, you can control the entire environment for your application through bankvar.

crbank.sh

crbank

A shell script that creates databases for all banks when bankapp is run in SHM mode.

crbankdb.sh

crbankdb

A shell script that creates a database for one server group.

crtlog.sh

crtlog, TLOG

A shell script that creates a UDL and a TLOG on the master site and a UDL on the non-master sites.

driver.sh

driver

A shell script that drives the application by piping FML buffers with transaction requests through ud(1).

envfile.sh

envfile, ENVFILE

A shell script that creates ENVFILE for use by tmloadcf.

gendata.c

gendata

A program that generates ud-readable requests to add ten branches, thirty tellers, and two hundred accounts.

gentran.c

gentran

A program that generates ud-readable transaction requests from four services: DEPOSIT, WITHDRAWAL, TRANSFER, and INQUIRY.

populate.sh

populate

A shell script that populates the database by piping FML buffers with requests to add branches, tellers, and accounts through ud(1).

ubbmp

TUXCONFIG

A sample UBBCONFIG file for use in an MP-mode configuration.

ubbshm

TUXCONFIG

A sample UBBCONFIG file for use in a SHM-mode configuration.

util.c

util.o

A set of functions, such as getstrl(), that are commonly used by services.

bankclt.c

bankclt

Client for bankapp.

See Also