WebSphere MQ messages
WebSphere MQ messages are made up of two parts:
- Message descriptor
- Application data
The application data carried in a WebSphere MQ message is not changed by a queue manager unless data conversion is carried out on it. Also, WebSphere MQ does not put any restrictions on the content of this data. The length of the data in each message cannot exceed the value of the MaxMsgLength attribute of both the queue and queue manager.
In WebSphere MQ for AIX, WebSphere MQ for iSeries, WebSphere MQ for HP-UX, WebSphere MQ for Linux, MQSeries for OS/2 Warp, WebSphere MQ for Solaris, MQSeries for Compaq Tru64 UNIX, and WebSphere MQ for Windows, the MaxMsgLength defaults to 100 MB (104 857 600 bytes).
In WebSphere MQ for z/OS, the MaxMsgLength attribute of the queue manager is fixed at 100 MB and the MaxMsgLength attribute of the queue defaults to 4 MB (4 194 304 bytes) which you can change up to a maximum of 100 MB if required. However, the limit is 63 KB when using shared queues accessed by queue managers in a queue-sharing group.
In MQSeries for AT&T GIS UNIX, MQSeries for Compaq OpenVMS Alpha, MQSeries for SINIX and DC/OSx, MQSeries for Compaq NonStop Kernel, and MQSeries for VSE/ESA the MaxMsgLength defaults to 4 MB.
However, make your messages slightly shorter than the value of the MaxMsgLength attribute in some circumstances. See The data in your message for more information.
You create a message when you use the MQPUT or MQPUT1 MQI calls. As input to these calls, you supply the control information (such as the priority of the message, and the name of a reply queue) and your data, and the call then puts the message on a queue. See WebSphere MQ Application Programming Reference for more information on these calls.
This chapter introduces WebSphere MQ messages, under these headings:
- Message descriptor
- Types of message
- Format of message control information and message data
- Message priorities
- Message groups
- Message persistence
- Selecting messages from queues
- Messages that fail to be delivered
- Messages that are backed out
- Reply-to queue and queue manager
- Message context
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.