-----------------------------------------------------------------------------------------
Writing a MQ Program in C and Introduction to MQ-API (C)
-----------------------------------------------------------------------------------------
The very first thing which we need to do in a c program is to use header files.So to use MQ APIs propersly you need to include an API
"cmqc.h"
1.MQCONN : This is the very first API and is used to connect to Queue.
2.MQOPEN : It is used to open a queue.
3.MQPUT : It is used to put a message on queue.
4.MQGET : It is used to get a mesage from queue.
5.MQCLOSE : It is used to close the queue.
6.MQDISC : It is used to disconnect fom the queue manager.
Sample Program : I am providing here a Sample Java program .However the API's provided in this page is useful for programming MQ in 'C' language i am providing here sample java program for reference.