Mule Requester Usage Demo
-
Upload
ramakrishna-narkedamilli -
Category
Technology
-
view
376 -
download
1
Transcript of Mule Requester Usage Demo
Mule Requester usage DemoBy Ramakrishna Narkedamilli
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.
Prerequisites:
Mule Anypoint studio Activemq is up and running Mule requester component( can be downloaded from https://
github.com/mulesoft/mule-module-requester)
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:
Create Activemq global endpoint to refer that later from Mule requester component
Create two flows now to send and receive messages from Activemq . It looks like similar to below
Sample Project XML code
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
Now trigger the http://localhost:8083 to call the second flow to pull message from Activemq using Mule requester
THANKS YOU By Ramakrishna Narkedamilli