Lamaxu has actions to allow you to read message payloads if authorised to do so.
Info |
---|
MQ browse/get authorities need to be granted to the user assigned to the Lamaxu channel to use this feature |
Table of Contents |
---|
Browse / Get all Messages on a Queue
The REST URL for this would be,
...
Example Output,
Code Block | |
---|---|
xml | {
"messages": [
{
"messageBrokerName": "DEMO",
"objectName": "LMX.REPLY.Q",
"objectType": "MSG_DATA",
"entryTime": "14/05/2019 8:23:38 PM",
"fields": {
"msgString": "Test 1",
"correlId": "000000000000000000000000000000000000000000000000",
"msgLength": "6",
"messageId": "414D512044454D4F20202020202020207A1BF45AD2D15C20",
"expiry": "-1",
"putDateTime": "Mon, 14 May 2019 20:14:43 PM"
}
},
{
"messageBrokerName": "DEMO",
"objectName": "LMX.REPLY.Q",
"objectType": "MSG_DATA",
"entryTime": "14/05/2019 8:23:38 PM",
"fields": {
"msgString": "Test 2",
"correlId": "000000000000000000000000000000000000000000000000",
"msgLength": "6",
"messageId": "414D512044454D4F20202020202020207A1BF45AD5D15C20",
"expiry": "-1",
"putDateTime": "Mon, 14 May 2019 20:14:46 PM"
}
},
{
"messageBrokerName": "DEMO",
"objectName": "LMX.REPLY.Q",
"objectType": "MSG_DATA",
"entryTime": "14/05/2019 8:23:38 PM",
"fields": {
"msgString": "Test 3",
"correlId": "000000000000000000000000000000000000000000000000",
"msgLength": "6",
"messageId": "414D512044454D4F20202020202020207A1BF45AD8D15C20",
"expiry": "-1",
"putDateTime": "Mon, 14 May 2019 20:14:49 PM"
}
}
]
} |
Selecting Messages using MessageId and CorrelId
You can also filter on messageId and correlId , example, http://localhost:8085/actions/.*/QBROWSE/LMX.REPLY.Q/messageId/414D512044454D4F20202020202020207A1BF45AD21B6F20
Example output,
Code Block |
---|
{ "queue": { "curDepth": 3, "maxMsgLength": 4194304, "inputCount": 0, "outputCount": 0, "maxDepth": 99999999, "queueName": "LMX.REPLY.Q", "qmgrName": "DEMO", "messages": [ { "correlId": "000000000000000000000000000000000000000000000000", "messageId": "414D512044454D4F20202020202020207A1BF45AD21B6F20", "msgLength": 6, "expiry": -1, "putDateTime": "Fri, 18 May 2018 11:32:40 AM", "msgString": "Test 1", "msgPosition": 1 }, { "correlId": "000000000000000000000000000000000000000000000000", "messageId": "414D512044454D4F20202020202020207A1BF45AD51B6F20", "msgLength": 6, "expiry": -1, "putDateTime": "Fri, 18 May 2018 11:32:42 AM", "msgString": "Test 2", "msgPosition": 2 }, { "correlId": "000000000000000000000000000000000000000000000000", "messageId": "414D512044454D4F20202020202020207A1BF45AD81B6F20", "msgLength": 6, "expiry": -1, "putDateTime": "Fri, 18 May 2018 11:32:44 AM", "msgString": "Test 3", "msgPosition": 3 } ], "description": " ", "entryTime": "21/05/2018 10:07:50 PM" } } |