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

MQSetTextMessageText

The MQSetTextMessageText function defines the body for a text message.


MQSetTextMessageText
               (const MQMessageHandle messageHandle,
                ConstMQString messageText);

Return Value

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

Parameters

messageHandle

A handle to a message whose text body you want to set.

messageText

An MQString specifying the message text. The library makes a copy of the message text.

After you obtain the handle to a text message, you can use this handle to define its body with the MQSetTextMessageText() function. You can set its application-defined properties with the MQSetMessageProperties() function, and you can set certain message headers with the MQSetMessageHeaders() function.