The MQPublish() function publishes 3data to WMQ. It requires the installation of the WMQ Publish/Subscribe 3component of WMQ, and that the Message Broker is running.
3The MQPublish() function publishes the 3data contained in msg_data to the WMQ publisher 3specified in publisher_name, using the quality 3of service policy defined by policy_name.
3The following table describes how the arguments for the MQPublish() function 3are interpreted. 3
3 3| Usage | 3Argument Interpretation | 3
|---|---|
| MQPublish(arg1) | 3arg1 = msg_data | 3
| MQPublish(arg1, arg2) | 3
3 arg1 = msg_data 3arg2 = topic 3 |
3
| MQPublish(arg1, arg2, arg3) | 3
3 arg1 = publisher_name 3arg2 = msg_data 3arg3 = topic 3 |
3
| MQPublish(arg1, arg2, arg3, arg4) | 3
3 arg1 = publisher_name 3arg2 = policy_name 3arg3 = msg_data 3arg4 = topic 3 |
3
| MQPublish(arg1, arg2, arg3, arg4, arg5) | 3
3 arg1 = publisher_name 3arg2 = policy_name 3arg3 = msg_data 3arg4 = topic 3arg5 = correl_id 3 |
3