Nav

Anypoint MQ

Anypoint MQ is a multi-tenant, cloud messaging service that enables customers to perform advanced asynchronous messaging scenarios between their applications. Anypoint MQ is fully integrated with Anypoint Platform, offering role based access control, client application management, and connectors.

Latest Feature: FIFO Queues

Important: Anypoint MQ connector version 1.1.1 is deprecated and should not be used. Customers should upgrade to MQ connector version 1.1.2 or 1.1.3 as soon as possible.

Anypoint MQ Documentation

Guide Description

About Anypoint MQ

Explains MQ terminology.

Tutorial: To Use Anypoint MQ

Walks through creating a queue, a client app, sets up Anypoint Studio, and uses Postman to send and receive messages. The tutorial also adds a message exchange and shows its differences from a queue.

To Set Environment, User, and Role Access

Assigns MQ environment, user, and role access.

To Configure Queues

Uses Anypoint Platform to create queues, send messages to a queue, and get messages from a queue. This topic also describes Dead Letter Queues and FIFO Queues.

To Configure Message Exchanges

Describes how to send messages to a message exchange and view the message in queues. Also describes how to bind queues to a message exchange and how to unbind queues from a message exchange.

To Configure Client Applications

Explains how to register an application in Anypoint MQ, and how to view and copy the application’s client ID and client secret.

To Set Up Studio for the MQ Connector

Uses Anypoint Studio to install and configure the Anypoint MQ connector, and create and run an application.

To Use the Anypoint MQ REST APIs

Accesses Anypoint MQ functionality using REST. Contains section on how to create a FIFO queue using a REST API.

About Usage Graphs

Describes how to view MQ usage information from the Anypoint Platform’s Access Management section.

About Acknowledgement Mode

Explains global and local ack and nack states.

FAQ: Anypoint MQ

Frequently asked questions with answers.

Release Notes

Summarizes release information for the Anypoint MQ Cloud and Anypoint MQ Connector products.

Anypoint MQ Workflow

The steps that follow help you use Anypoint MQ. This same workflow is described in the Anypoint MQ Tutorial.

To install and configure Anypoint MQ:

  1. Log into Anypoint Platform using your [Enterprise Mule credentials].

  2. Click MQ from Anypoint Platform.

  3. Click Access Management > Users or Roles to create an MQ user or role.

  4. From MQ, create a queue, message exchange, or a FIFO queue.

  5. Click a queue or message exchange name in the detail to access the Message Sender to send messages to a queue or message exchange, and to use the Message Browser to get messages from a queue.

  6. From MQ, click Client Apps to register an application. You can view the client ID and client secret for the application.

  7. In Anypoint Studio:

    1. Install the MQ connector using Anypoint Exchange.

    2. Create a new Mule project with needed building blocks, such as an HTTP connector, Anypoint MQ connector, Set Payload, and a Logger.

    3. Configure the Anypoint MQ connector and provide the Client ID and Secret of the application you specified in Anypoint Platform > MQ.

    4. Set the MQ connector’s Operation to publish or consume messages, or to manually ack (accept a message) or nack (don’t accept a message). Alternatively to ack or nack, Anypoint MQ can provide automatic Acknowledgement Mode. If you set the Operation to publish, set the Destination to the name of a queue or message exchange that you created in Anypoint Platform. If you sent the Operation to consume, specify the name of a queue from which you want to receive messages.

    5. Run the Mule application.

  8. Use a REST client such as Postman to send or receive a message.

    The Anypoint MQ application sends the string as a message to the queue or message exchange you specified.

  9. View your message in a browser or the Studio console.