Once you have created the message, you can put it to a local queue using
the
putMessage function. Note that the queue and queue manager names
are passed in. NULL and 0 are passed in for the security and assured delivery
parameters, as they are not required in this example. Once the message has
been put, you can free the MQeFields object:
if ( MQERETURN_OK == rc ) {
display("Putting a message \n");
rc = mqeQueueManager_putMessage(hQueueManager,
&exceptBlock,
hLocalQMName,
hLocalQueueName,
hMsg,
NULL,
0);
(void) mqeFields_free(hMsg,NULL);
}