‎2025 Mar 24 5:42 PM - edited ‎2025 Mar 24 6:40 PM
Dear experts.
I hope all is well with you.
We are evaluating the implementation of a solution to notify alerts when we notice X amount of entries in a JMS queue.
We tried checking CI's OData V2 API, Message Stores, JMS Resources (expanding to QueueStates), but it only shows whether the queue is healthy or not (based on number of entries vs capacity).
https://api.sap.com/api/MessageStore/path/get_JmsBrokers__Broker1__
Sample API Response:
{
...CItenanthost/api/v1/MessageProcessingLogs/?$filter= Status eq 'RETRY' and IntegrationArtifact/Id eq 'IFLOW_ID'.
In an technical iFlow that will be executed periodically, executing the above query, if messages found, check the defined number of messages to send the alert, if it has been exceeded, send the email.
We are also checking the use of SAP ALM connected with Integration Suite Tenant, perhaps adding the SAP ANS (Alert Notification) BTP service to the solution.
Anyone from the community willing to contribute extra information, insights or who has worked on the same need?
I appreciate any feedback/comments.
Thank you,
Fellipe Mendes
#cloudintegration #ci #JMS #queue
Request clarification before answering.
Hola Fellipe,
I hope I'm not off topic, but I'm certainly late.
I've just struggled with something similar, especially since when SAP brought back the good old "pipeline" concept, belonging to SAP PI/PO and missing in Integration Suite.
First of all, you can find all answers by calling this: https://<your-btp-host>/api/v1/$metadata (see attached).
Then, the "right" entity is simply Queues, not JmsQueue, which doesn't exist and comes back with a 501 HTTP response, bad. The response (ATOM) is quite detailed (see attached).
Then you can drill down: https://<your-btp-host>/api/v1/Queues('YourQueueName')/Messages
In the response you should (haven't tried it yet) find
Msgid
Failed: boolean (true o false).
If you wanna get rid of failed messages:
Method: DELETE
URL:
https://<your-btp-host>/api/v1/JmsMessages(Msgid='MSG_ID',Name='YourQueueName',Failed=true)You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.