beautypg.com

HP Reliable Transaction Router User Manual

Page 64

background image

RTR Management

or group of nodes. If there are no flags, the node or group is

operating normally.

RTR Command
Line Interface

The command line interface (CLI) to the RTR API enables the

programmer to write short RTR applications from the RTR

command line. This can be useful for testing short program

segments and exploring how RTR works. Figure 4–2 shows

the RTR CLI interface. For example, the commands shown in

Examples 4-1 to 4-4 start RTR and exchange a message between

a client and a server.

Note

The channel identifier identifies the application process

to the ACP. The client and server process must each have

a unique channel identifier. In this example, the channel

identifier for the client is C and for the server is S. Both

use the facility called DESIGN.

Sample TP

The examples that follow show transaction processing (TP)

communication between a client and a server created by entering

commands at a terminal keyboard. The client application is

executing on the frontend and the server on the backend.
The operational process is:
• Create the journal
• Create a facility
• Create a partition
• Open channels
• Start a transaction
• Accept the transaction
All applications will use some variants of these steps in the same

order.
The user is called user, the facility being defined is called

DESIGN, a client and a server are established, and a test

message containing the words "Kathy’s text today" is sent from

the client to the server. After the server receives this text, the

user on the server enters the words "And this is my response."

4–10 RTR Interfaces