如何设置 AMQ 消息的属性
How to set properties for AMQ message
我正在向 AMQ queue 发送 XML 消息。 XML 有 header 部分。我需要将 header 的 child 个节点设置为 AMQ 消息的属性。我正在使用 NodeJS stompit 包。
目前消息只显示一个 属性,即 JMSXDeliveryCount。
stompit documentation has an example where the destination
and content-type
headers are set when using the client.send
方法。您可以在那里添加任何其他 headers。
我正在向 AMQ queue 发送 XML 消息。 XML 有 header 部分。我需要将 header 的 child 个节点设置为 AMQ 消息的属性。我正在使用 NodeJS stompit 包。
目前消息只显示一个 属性,即 JMSXDeliveryCount。
stompit documentation has an example where the destination
and content-type
headers are set when using the client.send
方法。您可以在那里添加任何其他 headers。