java websphere MQ 消息的格式是什么

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16608757/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 23:27:19  来源:igfitidea点击:

What is format of websphere MQ messages

javajmsibm-mqmq

提问by Sankalp

After checking out mq series docs and white paper I have got the architecture for MQ messages ie Message descriptor (Message header) Application data (Message body) and its details hereBut I want to know what is the format (xml,binary,text...) in which quemanager of MQ series stores the messages.

在查看了 mq 系列文档和白皮书后,我获得了 MQ 消息的架构,即消息描述符(消息头)应用程序数据(消息正文)及其详细信息在这里但我想知道格式是什么(xml、二进制、文本。 ..) MQ 系列的 quemanager 存储消息。

回答by Shashi

The format of the payload is decided by the application, not MQ. You can send messages in whatever format you want. As mentioned in the developersWorks article, MQ has some predefined formats such MQFMT_STRING which means the format of the payload is text. This format is typically used for XML, text message body. Theseare the predefined list of message formats.

负载的格式由应用程序决定,而不是 MQ。您可以以任何您想要的格式发送消息。正如developersWorks 文章中提到的,MQ 有一些预定义的格式,例如MQFMT_STRING,这意味着有效负载的格式是文本。这种格式通常用于 XML、文本消息正文。这些是消息格式的预定义列表。