The data in your message

 

Give the address of the buffer that contains your data in the Buffer parameter of the MQPUT call. We can include anything in the data in your messages. The amount of data in the messages, however, affects the performance of the application that is processing them.

The maximum size of the data is determined by:

The MaxMsgLength attribute of the queue manager holds the size of message that the queue manager can process. This has a default of 100 MB for all WebSphere MQ V6 products.

To determine the value of this attribute, use the MQINQ call on the queue manager object. For large messages, we can change this value.

The MaxMsgLength attribute of a queue determines the maximum size of message that we can put on the queue. If you attempt to put a message with a size larger than the value of this attribute, your MQPUT call fails. If you are putting a message on a remote queue, the maximum size of message that we can successfully put is determined by the MaxMsgLength attribute of the remote queue, of any intermediate transmission queues that the message is put on along the route to its destination, and of the channels used.

For an MQPUT operation, the size of the message must be smaller than or equal to the MaxMsgLength attribute of both the queue and the queue manager. The values of these attributes are independent, but you are recommended to set the MaxMsgLength of the queue to a value less than or equal to that of the queue manager.

WebSphere MQ adds header information to messages in the following circumstances:

These structures are described in the Application Programming Reference.

If your messages are of the maximum size allowed for these queues, the addition of these headers means that the put operations fail because the messages are now too big. To reduce the possibility of the put operations failing:

The attributes for the queue manager and the message queuing constants are described in the Application Programming Reference.

For information on how undelivered messages are handled in a distributed queuing environment, see WebSphere MQ Intercommunications.

 

Parent topic:

Putting messages on a local queue using the MQPUT call


fg12360_