The MQCloseMessageProducer function closes a message producer.
MQCloseMessageProducer(MQProducerHandle producerHandle); |
MQStatus. See the MQStatusIsError() function for more information.
A handle for this producer that was passed to you by the functionMQCreateMessageProducer or by the function MQCreateMessageProducerForDestination.
This handle is invalid after the function returns.
Use the MQCloseMessageProducer function to close a producer without closing its associated session or connection.
MQ_PRODUCER_NOT_IN_SESSION