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

MQGetAcknowledgeMode

The MQGetAcknowledgeMode function passes back the acknowledgement mode of the specified session.


MQGetAcknowledgemode(const MQSessionHandle sessionHandle
                           MQAckMode * ackMode);

Return Value

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

Parameters

sessionHandle

The handle to the session whose acknowledgement mode you want to determine.

ackMode

Output parameter for the ackMode. The ackMode returned can be one of four enumeration values. See Acknowledge Modes for information about these values.

If you want to change the acknowledge mode, you need to create another session with the desired mode.