MuleSoft Integration With RabbitMQ
MuleSoft integration with RabbitMQ to consume messages from a queue.
Join the DZone community and get the full member experience.Join For Free
This article will explain in detail, how to integrate with RabbitMQ in MuleSoft and read messages from a queue.
Install and Setup RabbitMQ on Mac
In this section, I will explain how to install RabbitMQ on Mac, create a new queue and publish messages to the queue using the RabbitMQ portal.
Step 1: Install RabbitMQ.
brew install rabbitmq
Step 2: Start RabbitMQ Server.
Start RabbitMQ server in the foreground using the below command:
Or start the server in the background using the below command:
brew services start rabbitmq
Step 3: Access RabbitMQ.
Enter both username and password as
Step 4: Create New Queue.
Step 5: Publish Message in Queue.
Setup Mule Application
In this section, I will explain how to create a new Mule application, listen on RabbitMQ queue, read a message from the queue.
Step 1: Create a new Mule 4 application:
Open Anypoint Studio click on File -> New -> Application Name (app-rabbitmq-orders).
Step 2: Install AMQP connector from the exchange:
Step 3: Create flow to read the message from
Step 4: Test the MuleSoft Application Listener
Opinions expressed by DZone contributors are their own.