TMF Introduction (G06.26+)
HP NonStop TMF Introduction—522414-002
5-1
5
TMF Application Programming
The TMF application programming interface (API) is accessible through commands in
the following languages: C, C++, HP COBOL, FORTRAN, SQL, SCREEN COBOL,
and TAL.
TMF frees application programmers from the tasks of managing concurrency and
consistency in case of failure. However, those who use TMF must properly define
transactions as they code their application programs.
This section addresses application programming concepts, and includes the following
topics:
Overview of Application Programming
As a TMF application program runs, TMF provides underlying functions that greatly
simplify the programmatic details of transaction processing. The application programs
themselves are typically based on the requester/server model.
TMF Functions in Application Programming
The TMF interface in application programs provides two major functions:
•
Accessing and locking data
All data records that are to be modified must first be locked. The I/O and locking
interface to TMF depends on the programming language used. TMF manages
locks when several applications need concurrent locks on the same data.
•
Controlling transactions
Applications must be able to create, commit, and abort transactions. The particular
transaction control statements also depend on the programming language.
Topic Page
Overview of Application Programming 5-1
Accessing and Locking Data 5-2
Controlling Transactions 5-8
Designing Applications for the Pathway Environment 5-9