IBM MQ 关联 ID 长度限制问题

发布于 2025-01-17 16:15:27 字数 636 浏览 2 评论 0原文

我正在使用 .net 客户端发送和接收 IBM MQ 消息。

我正在 MQMessage 下设置相关 id 属性来发送和接收。当相关 ID 长度很小时(准确地说是 24 个字符)时,我能够向队列发送消息,但当它超过 24 个字符时,会出现错误。

我阅读了 IBM 文档,发现了这个

https://www.ibm.com/docs/en/iis/9.1?topic=properties-hex-correlation-id

https://www.ibm.com/docs/en/iis/9.1?topic=properties-value-correlation-id

为了支持 48 个字符的十六进制相关 ID,我需要设置 'Hex ' 属性为 true,默认为 false。

但不确定如何设置 Hex 属性。

I am using the .net client to send and receive IBM MQ messages.

I am setting the correlation id property under MQMessage to send and receive. I am able to send a message to the queue when the correlation id length is small(Accurately 24 characters) but giving me an error when it is more than 24.

I read the IBM documentation and found this

https://www.ibm.com/docs/en/iis/9.1?topic=properties-hex-correlation-id

https://www.ibm.com/docs/en/iis/9.1?topic=properties-value-correlation-id

In order to support Hexadecimal correlation ID of 48 characters i need to set 'Hex' property to true which is by default false.

But not sure how to set up Hex property.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文