stompamq

How to set properties for AMQ message


I am sending XML message to AMQ queue. XML has header section. I need to set child nodes of header as properties of AMQ message. I am using NodeJS stompit package.

Currently message shows only one property which is JMSXDeliveryCount.enter image description here


Solution

  • The stompit documentation has an example where the destination and content-type headers are set when using the client.send method. You can add whatever other headers you want there.