I have a scenario where if the size of queue exceeds from the 10 queues it should send email alert to the client the logice should be done in Anypoint Studio
- how can i check the size of the queue ( Anypoint MQ) using anypoint studio
I have a scenario where if the size of queue exceeds from the 10 queues it should send email alert to the client the logice should be done in Anypoint Studio
Copyright © 2021 Jogjafile Inc.
You can develop a Mule application in Anypoint Studio that calls Anypoint MQ REST API (using the HTTP Request connector) to read the number of messages in a queue. Note that this information is not updated in realtime as the documentation mentions.
Example URL:
Example OUTPUT:
Note that you need to get an access token from Anypoint Platform to authorize the HTTP request.