2. ANYPOINT STUDIO MQ CONNECTOR
• This section describes how to install the Anypoint MQ connector in
Anypoint Studio and how to configure Studio to handle applications.
• To add the Anypoint MQ connector to Studio, follow the steps given in
next slides.
3. STEP 1
• In Studio, click the X in the upper left of Studio.
4. STEP 2
• In anypoint exchange, search for anypoint mq
5. STEP 3 & 4
• Click Install.
• Type your first and last
name, email address, and
telephone number. Click the
checkbox to agree to the
MuleSoft terms of service.
6. STEP 5 & 6
• Click Install.
• Follow the prompts to install the Anypoint MQ connector.
7. CREATE A CLIENT APP
• Creating a client app provides the client ID and client secret you can
use to register an app as either an Anypoint MQ publisher or
subscriber.
• To create a client app, follow the steps given in next slides.
8. STEP 1, 2 & 3
• In Anypoint Platform, click MQ.
• Click Client Apps from the left nav bar:
• Click the blue plus circle:
9. STEP 4 & 5
• Specify the name of the client application.
• Click Save Changes.
10. STEP 6 & 7
• Click the client app entry to view the client ID and secret values:
• Click the Copy button for the ID or secret to copy the value to your
computer’s clipboard.
11. ADD A CLIENT APP TO STUDIO -
STEP 1 & 2
• In Anypoint Platform, click MQ > Client Apps:
• Create a client app. Note the Client ID and Client Secret values. We use
these later when we configure the Anypoint MQ connector in Anypoint
Studio.
12. STEP 3 - 6
• In Studio, click File > New > Mule Project.
• Search for "http" and drag the HTTP connector to the Studio Canvas.
Click the HTTP connector, and click the green plus sign to the right
of Connector Configuration. Click OK to accept the defaults.
• Search for "mq" and drag the Anypoint MQ connector to the canvas.
• Click the green plus sign to the right of Connector Configuration.
13. STEP 7
• In the Global Element Properties window:
• Copy the Anypoint Platform > MQ > Client
App > Client App ID value to Studio’s Client
IDfield.
• Copy the Client App > Client Secret value to
Studio’s Client Secret field. You can ignore the
other settings to test your first connector.
• Set Max Redelivery to -1 to ensure that Anypoint
MQ keeps retrying to deliver a message that is
not delivered. The -1 value indicates that there is
no limit to retries.
• Click OK.
14. STEP 8 - 9
• Click the Operation field
and specify an operation
such as Publish or
Consume.
• Specify the Destination as
the name of the Queue or
Exchange that you set in
Anypoint Platform.