Sun Java System Message Queue 4.3 Developer's Guide for C Clients

MQCloseMessageProducer

The MQCloseMessageProducer function closes a message producer.


MQCloseMessageProducer(MQProducerHandle producerHandle);

Return Value

MQStatus. See the MQStatusIsError() function for more information.

Parameters

producerHandle

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.

Common Errors

MQ_PRODUCER_NOT_IN_SESSION