Sample programs for distributed platforms

This topic describes the sample programs delivered with IBM® WebSphere® MQ, written in C and COBOL. The samples demonstrate typical uses of the Message Queue Interface (MQI).

The samples are not intended to demonstrate general programming techniques, so some error checking that you might want to include in a production program is omitted. However, these samples are suitable for use as a base for your own message queuing programs.

The source code for all the samples is provided with the product; this source includes comments that explain the message queuing techniques demonstrated in the programs.

C++ sample programs: See Using C++ for a description of the sample programs available in C++.

The names of the samples start with the prefix amq. The fourth character indicates the programming language, and the compiler where necessary.

The eighth character of the executable indicates whether the sample runs in local binding mode or client mode. If there is no eighth character, then the sample runs in local bindings mode. If the eighth character is 'c' then the sample runs in client mode. To set up the queue manager to accept client connections, see Preparing and running the sample programs for details.