Presented By
Sindhu VL
What is mule requester?
 As its name may hint, its goal is to allow the request of
a resource at any point in a flow.
 This resource can be a file, a message (from VM,
JMS, AMQP, etc.), an e-mail, etc.
 It’s intended for resources that originally could only be
requested by message sources.
 If we want to consume messages from a queue on demand,
i.e. not consuming the message as soon as it’s put on the
queue but at a later stage, when a user calls an HTTP
inbound endpoint, for example.
 We cannot achieve this by using a JMS inbound endpoint,
since it will consume the message as soon as it’s put on the
queue.
 Thinking about a way of doing this, we could have a
stopped flow and activate it on demand but this would
cause the consumption of more than one message or a
clumsy implementation that would pick a message and
stop the flow again.
 Another option would be to use a component but this
would have to deal with the specifics of the transport,
leading to either one implementation per transport type or
a big component handling all the transports.
Example flow :
Some of its more common use
cases are :
 Load a file in the middle of a flow for processing.
 Consume messages (one, N, all) from a queue in the
middle of a flow.
 Pull messages from a mail server on demand, to use its
data in an enricher for example.
Why releasing it as a Mule
module?
 It’s reusable
 It’s simple
 It can be easily installed in MuleStudio
 It can be used with Maven
•Following the first example, let’s show a more complex one: consuming all the
messages from a queue on demand. Let’s assume that the use case is to get all those
messages after a user called an inbound HTTP endpoint (it could be any other kind of
Mule endpoint, e.g. Quartz).
First we have the flow with the starting entry point:
Flow reference :
This flow does all the magic:
 First it requests a message from the queue ‘input’.
 If there is a message, it processes it (just logs the payload in the
example) and calls the same flow again, to allow the processing
of the next messages in queue.
 Otherwise, if there is no pending message in the queue, it just
logs the queue has been emptied and finishes.
 This configuration also contains another example that shows
how to consume a file based on an expression after calling an
HTTP inbound endpoint.
Key feature of the module :
 Expressions support
 Possibility of throwing an exception if the requested
resource is null
 Automatic transformer: the return type of the
requester resource can be set to any type and Mule will
automatically try to transform it
ThankYou!!!!!!!!!!!!!

More Related Content

PPTX
Mule requester
PPTX
Mule with composite source
PPT
Mule - HTTP Listener
PPTX
PPTX
Mulesoft http connector
PPTX
Send email attachment using smtp in mule esb
PPTX
Xslt in mule
PPTX
Scatter gatherinmule
 
Mule requester
Mule with composite source
Mule - HTTP Listener
Mulesoft http connector
Send email attachment using smtp in mule esb
Xslt in mule
Scatter gatherinmule
 

What's hot (20)

PPTX
Using seda in mule
PPTX
Mule esb mule message
PPTX
Mulesoft vm transport reference
PPTX
Mule core concepts
PPTX
Quartz in Mule
PPTX
Mule advanced
PPTX
Using groovy in mule
PPTX
What is the difference between using private flow
PDF
Introduction To Mule
PPTX
Mule quartz
PPTX
Core concepts in mule
PPTX
Mule with stored procedure
PPTX
Vm component in mule
PPTX
Runing batch job in mule
PPTX
Webservice vm in mule
PPTX
Connectors in mule
PPTX
Mule soa
PPTX
Mule esb transformers
PPTX
Service orchestration by using flows
PPTX
Vm component in mule demo
Using seda in mule
Mule esb mule message
Mulesoft vm transport reference
Mule core concepts
Quartz in Mule
Mule advanced
Using groovy in mule
What is the difference between using private flow
Introduction To Mule
Mule quartz
Core concepts in mule
Mule with stored procedure
Vm component in mule
Runing batch job in mule
Webservice vm in mule
Connectors in mule
Mule soa
Mule esb transformers
Service orchestration by using flows
Vm component in mule demo

Viewers also liked (20)

PPTX
Content based routing tutorial in mule
PPTX
Mule esb enterprise
PPTX
File connector mule
PPTX
Mule concepts
PPTX
Munit
PPTX
Configuration patterns in mule
PPTX
Debugging mule
PPTX
Testing mule
PPTX
Flows and subflows in mule
PPTX
Working of mule
PPTX
Service orchestration by using flows
PPTX
Error handling with respect to mule
PPTX
Quartz connector mule
PPTX
Xslt attributes
PPTX
Mule core concepts
PPTX
Xslt mule
PPTX
Component bindings in mule
PPTX
Groovy component
PPTX
Mule debugging
PPTX
Using flows for service orchestration
Content based routing tutorial in mule
Mule esb enterprise
File connector mule
Mule concepts
Munit
Configuration patterns in mule
Debugging mule
Testing mule
Flows and subflows in mule
Working of mule
Service orchestration by using flows
Error handling with respect to mule
Quartz connector mule
Xslt attributes
Mule core concepts
Xslt mule
Component bindings in mule
Groovy component
Mule debugging
Using flows for service orchestration

Similar to Mule requestor component (20)

PPTX
Mule integration
PPTX
PPTX
Message Queue (MQ) Testing
PPTX
Message Queue (MQ) Testing
PDF
Mule ESB
PPTX
Working with components
PPTX
Elements in a mule flow
PPTX
Elements in a muleflow
PPTX
Mule message
PPTX
Mule working with components
PDF
seminarembedded-150504150805-conversion-gate02.pdf
PPTX
Real Time Operating Systems
PPTX
Mule flows
PDF
Mule ESB Interview or Certification questions
PPTX
Email using mule
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPT
Queues and Mule Transport Mechanisms
Mule integration
Message Queue (MQ) Testing
Message Queue (MQ) Testing
Mule ESB
Working with components
Elements in a mule flow
Elements in a muleflow
Mule message
Mule working with components
seminarembedded-150504150805-conversion-gate02.pdf
Real Time Operating Systems
Mule flows
Mule ESB Interview or Certification questions
Email using mule
Send 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 esb
Queues and Mule Transport Mechanisms

More from Sindhu VL (17)

PPTX
Mule - error handling
PPTX
Mule - beginners guide
PPTX
Core concepts - mule
PPTX
Basics of mule for beginners
PPTX
Mule testing
PPTX
Mule securing
PPTX
Bindings of components in mule
PPTX
Using maven with mule
PPTX
Using mule configuration patterns
PPTX
Encrption in mule
PPTX
Concepts in mule
PPTX
Enterprise service bus mule
PPTX
Mule errors
PPTX
Mule esb for beginners
PPTX
Design flows in mule
PPTX
Flows in mule
PPTX
Choice router mule
Mule - error handling
Mule - beginners guide
Core concepts - mule
Basics of mule for beginners
Mule testing
Mule securing
Bindings of components in mule
Using maven with mule
Using mule configuration patterns
Encrption in mule
Concepts in mule
Enterprise service bus mule
Mule errors
Mule esb for beginners
Design flows in mule
Flows in mule
Choice router mule

Recently uploaded (20)

PDF
Interview Notes - C Studio 2025 - Character
PDF
Valentina Vega de Seoane Rubí - Portfolio
PPTX
History of Architecture - post modernism ass.pptx
DOCX
allianz arena munich case study of long span structure
PPTX
Why is digital marketing essential for any business?
PDF
case studies and literature study for a salon design
PPTX
Rocket-Launched-PowerPoint-Template.pptx
PPTX
water supply and waste management , water demand
PPTX
9Slide-Fashion-Templateaaaaaaaaaaaaaaaaa
PDF
CSWIP1 welding standards and welding simpols
PPTX
introduction of linguistics bdhddjsjsjsjdjd
DOCX
AIRPORT DESIGN AND ITS CODE REQUIREMENT.docx
PPTX
Unit - 1 ppt.pptx Design Thinking overview
PPTX
Wrought Iron Crafts of Dindori -FINAL30112021.pptx
PPTX
6. HR and Talent Management Toolkit - Overview.pptx
PDF
Surat undangan 2025-2026.pdf hafaccsjakwjw
PDF
commercial kitchen design for owners of restaurants and hospitality
PPTX
hydroponics. Yhguhvujbcujhhhh.pptx.
PDF
SEMINAR 21st classroom SCE by school science
PPTX
Advanced Pharmaceutical Analysis-Lecture Two.pptx
Interview Notes - C Studio 2025 - Character
Valentina Vega de Seoane Rubí - Portfolio
History of Architecture - post modernism ass.pptx
allianz arena munich case study of long span structure
Why is digital marketing essential for any business?
case studies and literature study for a salon design
Rocket-Launched-PowerPoint-Template.pptx
water supply and waste management , water demand
9Slide-Fashion-Templateaaaaaaaaaaaaaaaaa
CSWIP1 welding standards and welding simpols
introduction of linguistics bdhddjsjsjsjdjd
AIRPORT DESIGN AND ITS CODE REQUIREMENT.docx
Unit - 1 ppt.pptx Design Thinking overview
Wrought Iron Crafts of Dindori -FINAL30112021.pptx
6. HR and Talent Management Toolkit - Overview.pptx
Surat undangan 2025-2026.pdf hafaccsjakwjw
commercial kitchen design for owners of restaurants and hospitality
hydroponics. Yhguhvujbcujhhhh.pptx.
SEMINAR 21st classroom SCE by school science
Advanced Pharmaceutical Analysis-Lecture Two.pptx

Mule requestor component

  • 2. What is mule requester?  As its name may hint, its goal is to allow the request of a resource at any point in a flow.  This resource can be a file, a message (from VM, JMS, AMQP, etc.), an e-mail, etc.  It’s intended for resources that originally could only be requested by message sources.
  • 3.  If we want to consume messages from a queue on demand, i.e. not consuming the message as soon as it’s put on the queue but at a later stage, when a user calls an HTTP inbound endpoint, for example.  We cannot achieve this by using a JMS inbound endpoint, since it will consume the message as soon as it’s put on the queue.  Thinking about a way of doing this, we could have a stopped flow and activate it on demand but this would cause the consumption of more than one message or a clumsy implementation that would pick a message and stop the flow again.  Another option would be to use a component but this would have to deal with the specifics of the transport, leading to either one implementation per transport type or a big component handling all the transports.
  • 5. Some of its more common use cases are :  Load a file in the middle of a flow for processing.  Consume messages (one, N, all) from a queue in the middle of a flow.  Pull messages from a mail server on demand, to use its data in an enricher for example.
  • 6. Why releasing it as a Mule module?  It’s reusable  It’s simple  It can be easily installed in MuleStudio  It can be used with Maven
  • 7. •Following the first example, let’s show a more complex one: consuming all the messages from a queue on demand. Let’s assume that the use case is to get all those messages after a user called an inbound HTTP endpoint (it could be any other kind of Mule endpoint, e.g. Quartz). First we have the flow with the starting entry point:
  • 9. This flow does all the magic:  First it requests a message from the queue ‘input’.  If there is a message, it processes it (just logs the payload in the example) and calls the same flow again, to allow the processing of the next messages in queue.  Otherwise, if there is no pending message in the queue, it just logs the queue has been emptied and finishes.  This configuration also contains another example that shows how to consume a file based on an expression after calling an HTTP inbound endpoint.
  • 10. Key feature of the module :  Expressions support  Possibility of throwing an exception if the requested resource is null  Automatic transformer: the return type of the requester resource can be set to any type and Mule will automatically try to transform it