Try OpenEdge Now
skip to main content
Messaging and ESB
ABL - JMS API Reference : addMessagePart procedure
 

addMessagePart procedure

Adds a SonicMQ message to a MultipartMessage.
Note: The JMS providers other than SonicMQ do not support this method.

Syntax

PROCEDURE addMessagePart.
DEFINE INPUT PARAMETER messagePartH AS HANDLE.
DEFINE INPUT PARAMETER contentIDString AS CHARACTER.

Applies to

Message objects

Notes

*The Sonic message is created as usual.
*Its content type is defined by Sonic. The content-ID string (represented by contentIDString) sets the content ID of the part and is used to identify it.
*To conserve resources, after calling this procedure, the application must delete the message-part handle (represented by messagePartH).

See also

createMultipartMessage procedure , addBytesPart procedure, addMessagePart procedure , addTextPart procedure , isMessagePart function, getContentType, getPartCount function, getMessagePartByID function, getMessagePartByIndex function, writeBytesFromRaw procedure, readBytesToRaw procedure, setMemptr procedure, getMemptr function
For more information, see the MultipartMessage and the MultiPartMessage example.