Getting Started with Anypoint MQ
Follow these high-level steps to configure and use Anypoint MQ:
-
Contact your Account Team to obtain an Enterprise subscription and activate Anypoint MQ.
-
Configure a connected app to get an ID and secret to configure Anypoint Connector for MQ (Anypoint MQ Connector).
-
Configure a queue, message exchange, or a FIFO queue.
-
Send messages to a queue or message exchange.
-
Get messages from a queue.
-
In Anypoint Studio, configure Anypoint MQ Connector in your Mule app:
-
Install Anypoint MQ Connector using Anypoint Exchange.
-
Create a new Mule project with required building blocks, such as an Anypoint Connector for HTTP (HTTP Connector), Anypoint MQ Connector, Set Payload, and a Logger.
-
Configure Anypoint MQ Connector and provide the ID and secret of the connected app.
-
Set the Anypoint MQ Connector operation to publish or consume messages, or to accept (ACK) or not accept (NACK) a message.
-
Deploy the Mule app.
-
-
Test the queue:
-
Use a REST client such as
curl
or Postman to send or receive a message.Anypoint MQ sends the string as a message to the queue or message exchange you specified.
-
View your message in a browser or the Studio console.
-