Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 pymqi,版本 1.12.0
我试图将带有 correlId 的 msg 放入队列中,当我取回 msg 时,我只收到了 correlId 的一部分(前 24 个字符)。我看到CMQC下定义的correlId的长度:MQ_CORREL_ID_LENGTH=24
如何更改默认长度以使其适合不同的 correlIds 长度?
MQMD CorrelId 固定为 24 个字节(不是字符)。这是无法改变的。不同的语言绑定可能对不完全是该长度的输入(填充/截断)执行不同的操作,并且可能会或可能不会给出错误返回,但 24 是基础长度。