SlideShare a Scribd company logo
1 of 10
By Anirban Sen Chowdhary
.
.
Let me introduce you a component in Mule called Mule
Requester
Mule Requester
This component we can place in between our Mule
flow and can be used for any Inbound component
like Http, JMS or File
It can :-
• Load a file in a middle of a flow and start processing it.
• call a JMS queue and fetch the data from it in middle of
a queue
• Pull messages from a mail server on demand
Let us consider we need to fetch some messages from a JMS
queue in the middle of the flow
So whenever a http url is hit on the server the Mule
requester will be active and fetch the data from the JMS
queue
Now suppose there is a JMS queue named input from
where we need to fetch data in our flow on we hit the url
: http://localhost:8081/fetch like the following :-
As you can see above I am able to fetch the data “My
Payload” from the JMS queue in the middle of the flow
The Mule config will be :-
<mulerequester:config name="Mule_Requester" doc:name="Mule
Requester"/>
<jms:activemq-connector name="Active_MQ"
brokerURL="tcp://localhost:61616" specification="1.1"
doc:name="Active MQ"/>
<flow name="QueueRequester" doc:name="QueueRequester">
<http:inbound-endpoint exchange-pattern="request-response"
host="localhost" port="8081" path="fetch" doc:name="HTTP"/>
<mulerequester:request config-ref="Mule_Requester"
resource="jms://input" doc:name="Request a message from a queue"
/>
<logger message="Payload from JMS message: #[payload]"
level="WARN" doc:name="Logger"/>
</flow>
Thus, with the help of Mule Requester we can call any inbound
endpoint in Mule in between the Mule flow starting from JMS, to
http inbound and even File inbound
Mule requesterdemo

More Related Content

What's hot (11)

Xml to xml transformation in mule
Xml to xml transformation in muleXml to xml transformation in mule
Xml to xml transformation in mule
 
Splitting with mule part2
Splitting with mule part2Splitting with mule part2
Splitting with mule part2
 
Mapping and listing with mule
Mapping and listing with muleMapping and listing with mule
Mapping and listing with mule
 
Mapping and listing with mule
Mapping and listing with muleMapping and listing with mule
Mapping and listing with mule
 
Parameters as a part of body
Parameters as a part of bodyParameters as a part of body
Parameters as a part of body
 
Using XSLT in Mule
Using XSLT in MuleUsing XSLT in Mule
Using XSLT in Mule
 
Mule esb
Mule esbMule esb
Mule esb
 
Mapping and listing in mule
Mapping and listing in muleMapping and listing in mule
Mapping and listing in mule
 
xslt in mule
xslt in mulexslt in mule
xslt in mule
 
Scatter and gather in mule
Scatter and gather in muleScatter and gather in mule
Scatter and gather in mule
 
Stored procedure in Mule
Stored procedure in MuleStored procedure in Mule
Stored procedure in Mule
 

Viewers also liked

Viewers also liked (20)

Mule new jdbc component
Mule new jdbc componentMule new jdbc component
Mule new jdbc component
 
Spicing your mule response
Spicing your mule responseSpicing your mule response
Spicing your mule response
 
Restrict an ip
Restrict an ipRestrict an ip
Restrict an ip
 
Converting with custom transformer
Converting with custom transformerConverting with custom transformer
Converting with custom transformer
 
Converting with custom transformer part 2
Converting with custom transformer part 2Converting with custom transformer part 2
Converting with custom transformer part 2
 
Playing with cxf interceptor in mule
Playing with cxf interceptor in mulePlaying with cxf interceptor in mule
Playing with cxf interceptor in mule
 
Playing with cxf interceptor in mule
Playing with cxf interceptor in mulePlaying with cxf interceptor in mule
Playing with cxf interceptor in mule
 
Compressing & decompressing in mule
Compressing & decompressing in muleCompressing & decompressing in mule
Compressing & decompressing in mule
 
Encrypting/Decrypting mule
Encrypting/Decrypting  muleEncrypting/Decrypting  mule
Encrypting/Decrypting mule
 
Exception handling in mule
Exception handling in muleException handling in mule
Exception handling in mule
 
Calling database with groovy in mule
Calling database with groovy in muleCalling database with groovy in mule
Calling database with groovy in mule
 
Caching and invalidating with managed store
Caching and invalidating with managed storeCaching and invalidating with managed store
Caching and invalidating with managed store
 
Combing xml in Mule
Combing xml in MuleCombing xml in Mule
Combing xml in Mule
 
Mule parsing with json part2
Mule parsing with json part2Mule parsing with json part2
Mule parsing with json part2
 
Holding a mule flow
Holding a mule flowHolding a mule flow
Holding a mule flow
 
Timer Interceptor in Mule
Timer Interceptor in MuleTimer Interceptor in Mule
Timer Interceptor in Mule
 
Using jersey exception mapper
Using jersey exception mapperUsing jersey exception mapper
Using jersey exception mapper
 
Timer Interceptor in Mule part 2
Timer Interceptor in Mule part 2Timer Interceptor in Mule part 2
Timer Interceptor in Mule part 2
 
Calling flow from another application 2
Calling flow from another application 2Calling flow from another application 2
Calling flow from another application 2
 
RAMLing around with mule
RAMLing around with muleRAMLing around with mule
RAMLing around with mule
 

Similar to Mule requesterdemo

Similar to Mule requesterdemo (20)

Request in mule
Request in muleRequest in mule
Request in mule
 
Filtering jms messages with mule
Filtering jms messages with muleFiltering jms messages with mule
Filtering jms messages with mule
 
Web application with mule
Web application with muleWeb application with mule
Web application with mule
 
Webapplicationwithmule by raju
Webapplicationwithmule by rajuWebapplicationwithmule by raju
Webapplicationwithmule by raju
 
Webapplicationwithmule by nagarjuanreddy
Webapplicationwithmule by nagarjuanreddyWebapplicationwithmule by nagarjuanreddy
Webapplicationwithmule by nagarjuanreddy
 
Mule connectors-session1
Mule connectors-session1Mule connectors-session1
Mule connectors-session1
 
Mule requester
Mule requesterMule requester
Mule requester
 
Mule connectors-part 1
Mule connectors-part 1Mule connectors-part 1
Mule connectors-part 1
 
Email configuration in mule esb
Email configuration in mule esbEmail configuration in mule esb
Email configuration in mule esb
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
 
Caching & validating
Caching & validatingCaching & validating
Caching & validating
 
Mule message enricher
Mule message enricherMule message enricher
Mule message enricher
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
 
Email using mule
Email using muleEmail using mule
Email using mule
 
Configurare http mule
Configurare http muleConfigurare http mule
Configurare http mule
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
 
Caching and invalidating with managed store
Caching and invalidating with managed storeCaching and invalidating with managed store
Caching and invalidating with managed store
 

More from Anirban Sen Chowdhary

More from Anirban Sen Chowdhary (20)

Change the game with Game changer
Change the game with Game changerChange the game with Game changer
Change the game with Game changer
 
Ring central desktop app overview
Ring central desktop app overviewRing central desktop app overview
Ring central desktop app overview
 
Overview in ringcentral digital line
Overview in ringcentral digital lineOverview in ringcentral digital line
Overview in ringcentral digital line
 
Some basics with ring central
Some basics with ring centralSome basics with ring central
Some basics with ring central
 
Ring central and python
Ring central and pythonRing central and python
Ring central and python
 
RingCentral application development overview
RingCentral application development overviewRingCentral application development overview
RingCentral application development overview
 
Cloze connect ringcentral
Cloze connect ringcentralCloze connect ringcentral
Cloze connect ringcentral
 
Overview on ring central errors part 4
Overview on ring central errors part 4Overview on ring central errors part 4
Overview on ring central errors part 4
 
Setting up your ring central sandbox in steps
Setting up your ring central sandbox in stepsSetting up your ring central sandbox in steps
Setting up your ring central sandbox in steps
 
Overview on ring central errors: part 2
Overview on ring central errors: part 2Overview on ring central errors: part 2
Overview on ring central errors: part 2
 
Overview on ring central errors
Overview on ring central errorsOverview on ring central errors
Overview on ring central errors
 
Call recording overview ring central
Call recording overview  ring centralCall recording overview  ring central
Call recording overview ring central
 
Ring central engaging with amazon alexa
Ring central engaging with amazon alexaRing central engaging with amazon alexa
Ring central engaging with amazon alexa
 
How ring central sdk changing the game
How ring central sdk changing the gameHow ring central sdk changing the game
How ring central sdk changing the game
 
When ring central connect salesforce
When ring central connect salesforceWhen ring central connect salesforce
When ring central connect salesforce
 
Mule 4 connecting ring central
Mule 4 connecting ring centralMule 4 connecting ring central
Mule 4 connecting ring central
 
Ring central sdk
Ring central sdkRing central sdk
Ring central sdk
 
Ring central with okta
Ring central with oktaRing central with okta
Ring central with okta
 
Ring central connecting salesforce overview
Ring central connecting salesforce overviewRing central connecting salesforce overview
Ring central connecting salesforce overview
 
Ring central call logs overview (part 2)
Ring central call logs overview (part 2)Ring central call logs overview (part 2)
Ring central call logs overview (part 2)
 

Mule requesterdemo

  • 1. By Anirban Sen Chowdhary
  • 2. .
  • 3. .
  • 4. Let me introduce you a component in Mule called Mule Requester Mule Requester This component we can place in between our Mule flow and can be used for any Inbound component like Http, JMS or File
  • 5. It can :- • Load a file in a middle of a flow and start processing it. • call a JMS queue and fetch the data from it in middle of a queue • Pull messages from a mail server on demand
  • 6. Let us consider we need to fetch some messages from a JMS queue in the middle of the flow So whenever a http url is hit on the server the Mule requester will be active and fetch the data from the JMS queue
  • 7. Now suppose there is a JMS queue named input from where we need to fetch data in our flow on we hit the url : http://localhost:8081/fetch like the following :- As you can see above I am able to fetch the data “My Payload” from the JMS queue in the middle of the flow
  • 8. The Mule config will be :- <mulerequester:config name="Mule_Requester" doc:name="Mule Requester"/> <jms:activemq-connector name="Active_MQ" brokerURL="tcp://localhost:61616" specification="1.1" doc:name="Active MQ"/> <flow name="QueueRequester" doc:name="QueueRequester"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="fetch" doc:name="HTTP"/> <mulerequester:request config-ref="Mule_Requester" resource="jms://input" doc:name="Request a message from a queue" /> <logger message="Payload from JMS message: #[payload]" level="WARN" doc:name="Logger"/> </flow>
  • 9. Thus, with the help of Mule Requester we can call any inbound endpoint in Mule in between the Mule flow starting from JMS, to http inbound and even File inbound