How to determine the value of the `MaxMsgLength` queue

I am trying to write a simple string message to a queue. The property MaxMsgLengthfor the queue is set to 4 kb. Post has 2700 characters, and when I try to put in place, I get an exception in 2030 (07EE) (RC2030): MQRC_MSG_TOO_BIG_FOR_Q. I do not do any special kind of coding, and therefore everything that is by default for Windows should be used.

I want to know how to determine the value that I must provide in a property MaxMsgLength. How to calculate this.

+4
source share
2 answers

, MaxMsgLength, , , , . Infocenter MQ_* (String Lengths) MQ_MSG_HEADER_LENGTH, , MQMD 4000 . , MaxMsgLength 4k, 96 . , MQXQH.

, MaxMsgLength . , . "" API MQInq. MQMD, ( XML, , API, ), , RFH2 ( ), MQXQH, MQDLQ ..

+3

, . , C, BufferLength, MQPUT.

IBM MQ InfoCenter , 2030 .

+2

Source: https://habr.com/ru/post/1538144/


All Articles