我需要通过Artemis队列发送带有标头的消息。怎么能做到呢。
Headers:--header 'PAYMENT_RE: PAGO-X' \
--header 'Content-Type: application/json' \
--header 'OPERATION_ID: 72ab0c45-7871-4fdc-9cb7-e8644a87372d' \
--header 'ORDER_ID: 242221347' \
11:41
TRACING_HEADERS=[{\"uber-trace-id\":\"1429c44436cbaaa7%3A1dca2e791ce1724c%3A39ca9cdcbc9f1fa6%3A1\"},{\"uber-trace-id\":\"1429c44436cbaaa7%3Ae97e978f0d2e92e9%3A1dca2e791ce1724c%3A1\"},{\"uber-trace-id\":\"1429c44436cbaaa7%3A3f839f45ce8cf16d%3Ae97e978f0d2e92e9%3A1\"},{\"uber-trace-id\":\"1429c44436cbaaa7%3A7cc993c33466cb90%3A3f839f45ce8cf16d%3A1\"},{\"uber-trace-id\":\"1429c44436cbaaa7%3A4b4368e0660b8363%3A7cc993c33466cb90%3A1\"},{\"uber-trace-id\":\"1429c44436cbaaa7%3Abfd4a636acb617cb%3A4b4368e0660b8363%3A1\"},{\"uber-trace-id\":\"1429c44436cbaaa7%3A888811c524eba2fe%3Abfd4a636acb617cb%3A1\"}]
uber-trace-id=1098c66636cbaaa7%4ec2cb277101430ca2f88bbe9f56a3b8%3Abfd1a636acb618cb%3A1'
Body:
{
"correlationId":"",
"refundId":"",
"captureTraceabilityId":"",
"captureCode":"",
"networkId":154644,
"amount":{
"currency":"COP",
"total":10000
},
"route":{
"id":"",
"type":"DEFAULT"
},
"paymentInstrument":{
},
"partialOperation":false,
"finalPartialOperation":false
}
现在我只能发送正文,但我不知道如何发送标题:
但是我不知道怎么能发送标题的结构。
不清楚您使用的是哪个版本的ActiveMQ Artemis,但是当我使用2.24.0版本通过Web控制台发送消息时,我可以通过单击“添加标题”按钮向消息添加标题。这是我单击该按钮并输入一些详细信息后的屏幕截图: