Home

 

Queues that contain messages of different lengths

 

If your application cannot use messages of a fixed length, grow and shrink the buffers dynamically to suit the typical message size. If the application issues an MQGET call that fails because the buffer is too small, the size of the message data is returned. Add code to your application so that the buffer is resized accordingly and the MQGET call is re-issued.

if you do not set the MaxMsgLength attribute explicitly, it defaults to 4 MB, which might be very inefficient if this is used to influence the application buffer size.

 

Parent topic:

Application design considerations


fa15130_


 

Home