OpenTP1 Version 7 Description

[Contents][Glossary][Index][Back][Next]

2.4.2 Overview of communication using MQA message queuing

This section gives an overview of communication using MQA message queuing.

Organization of this subsection
(1) Putting messages
(2) Getting messages
(3) Transaction processing

(1) Putting messages

A local UAP uses MQPUT to send an MQA message to the queue file in the local system. When MQPUT terminates normally, the message is placed in the local queue file, and the UAP performs its next process. The local queue manager containing the queue file then sends the MQA message to the queue manager in a remote system. The MQA message is placed in the remote queue file for processing by a remote UAP. If you want to communicate interactively, you can define MQPUT to wait for the response from the remote UAP.

(2) Getting messages

Use MQGET to get MQA messages. The timing for receiving MQA messages depends upon whether the message-getting UAP is operating, as described below:

(3) Transaction processing

OpenTP1 can perform MQA message queuing as a transaction. After the UAP updates data, sends the MQA message to the queue manager, and the transaction is committed, the MQA message is placed in the queue file. If the transaction is rolled back, the MQA message in the queue file can be invalidated. For details of transaction, see 3.1 Transaction Control.