3.5. Programming with MQI

As explained in previous sections, the MQI is a set of functions and data types that allow the programmer to send and receive messages. The different functions accept input/output parameters, in order to be compatible among all the languages listed.

Generally, an MQI program applies a simple flow of operations as shown in Figure 3-1 on page 31.

Figure 3-1. MQI program sequence

1.
The program must first connect to a queue manager, using the MQCONN call.
2.
Once a connection has been successfully established, one or many objects can be opened using the MQOPEN call.
3.
Any number of operations, such as get or put operations, ...

Get MQSeries Programming Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.