Mule Requester Usage Demo

10
Mule Requester usage Demo By Ramakrishna Narkedamilli

Transcript of Mule Requester Usage Demo

Page 1: Mule Requester Usage Demo

Mule Requester usage DemoBy Ramakrishna Narkedamilli

Page 2: Mule Requester Usage Demo

Overview:

MuleSoft is a popular ESB technology to integrate various on-premise and cloud applications for data exchange. Mule requester is a very useful component to perform certain thing on demand means when consumer wants to do .

Some of its common use cases are:

1) Load a file in the middle of a flow for processing.2) Consume messages (one, N, all) from a queue in the middle of a flow.3) Pull messages from a mail server on demand, to use its data in an enricher for example.

In this presentation will going to see how to use Mule requester component to pull message from ActiveMQ on demand.

Page 3: Mule Requester Usage Demo

Prerequisites:

Mule Anypoint studio Activemq is up and running Mule requester component( can be downloaded from https://

github.com/mulesoft/mule-module-requester)

Page 4: Mule Requester Usage Demo

Download the mule requester component from here https://github.com/mulesoft/mule-module-requester and install that in Studio and do restart.

Create new mule project. Create Activemq global connector

Procedure:

Page 5: Mule Requester Usage Demo

Create Activemq global endpoint to refer that later from Mule requester component

Page 6: Mule Requester Usage Demo

Create two flows now to send and receive messages from Activemq . It looks like similar to below

Page 7: Mule Requester Usage Demo

Sample Project XML code

Page 8: Mule Requester Usage Demo

Running and Testing the Application:

Right click on project and run as Mule application. Now open the browser and trigger http://localhost:8082 to send message

to Activemq Now you can see one message hanging in activemq like below

Page 9: Mule Requester Usage Demo

Now trigger the http://localhost:8083 to call the second flow to pull message from Activemq using Mule requester

Page 10: Mule Requester Usage Demo

THANKS YOU By Ramakrishna Narkedamilli