14
CONFIGURING ANYPOINT STUDIO MQ CONNECTOR Shanky Gupta

Configuring Anypoint Studio MQ connector

Embed Size (px)

Citation preview

Page 1: Configuring Anypoint Studio MQ connector

CONFIGURING ANYPOINT STUDIO MQ CONNECTOR

Shanky Gupta

Page 2: Configuring Anypoint Studio MQ connector

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.

Page 3: Configuring Anypoint Studio MQ connector

STEP 1

• In Studio, click the X in the upper left of Studio.

Page 4: Configuring Anypoint Studio MQ connector

STEP 2

• In anypoint exchange, search for anypoint mq

Page 5: Configuring Anypoint Studio MQ connector

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.

Page 6: Configuring Anypoint Studio MQ connector

STEP 5 & 6

• Click Install.• Follow the prompts to install the Anypoint MQ connector.

Page 7: Configuring Anypoint Studio MQ connector

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.

Page 8: Configuring Anypoint Studio MQ connector

STEP 1, 2 & 3

• In Anypoint Platform, click MQ.• Click Client Apps from the left nav bar:

• Click the blue plus circle:

Page 9: Configuring Anypoint Studio MQ connector

STEP 4 & 5

• Specify the name of the client application.

• Click Save Changes.

Page 10: Configuring Anypoint Studio MQ connector

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.

Page 11: Configuring Anypoint Studio MQ connector

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.

Page 12: Configuring Anypoint Studio MQ connector

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.

Page 13: Configuring Anypoint Studio MQ connector

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.

Page 14: Configuring Anypoint Studio MQ connector

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.