WindowsEnabler/MQSeries Examples

An example C/C++ program how to integrate MQSeries with WindowsEnabler can be opened by clicking here.

The program takes two commandline parameters: the name of the request queue and the name of the reply queue. Both queues most be controlled by the default queue manager. The request queue must have been created and configured so that WindowsEnabler can read commands from it. WindowsEnabler must have been started. The reply queue must have been created and configured so that WindowsEnabler can put replies on it, and the sample program can read from it.

Once started, the program will ask for a line of input and send this line over the request queue to WindowsEnabler. It will then start waiting for replies over the reply queue until it receives an action notification. It will repeat this process until an empty line of input is given.

Note that the program does not construct WindowsEnabler commands itself. It is up to the user to provide a correct line of input. If not, WindowsEnabler will return an error message over the reply queue.