Message Enricher Example
The Mule Message Enricher allows the current message to
be reflexive using data from a separate resource which we
call it as Enrichment Resource. This Enrichment Resource
can be any Message Processor and should always return a
result, if it doesn’t then the Enricher will simply leave the
current message untouched.
• The Message Processor that implements the
Enrichment Resource is invoked with a copy of
the current message along with any flow or
session variables that are present. Any
modification to the current message and it’s
properties and attachments or flow or session
variables will not be reflected in the flow
where the Enricher is configured.
• Mule currently supports enrichment of flow
variables and message headers only.
• In simple language, we can say a message
enricher enrich the current payload with some
additional message and this is done without
disturbing the actual payload..
• Message Enricher will allow only one message
processor inside it if you want multiple
message processors needs to be configured
inside enricher, then use the Processor-chain
inside message enricher and inside processor-
chain use multiple message processors.
Enrichment component
XML Configuration
After deployed successfully
click on the below url:http://localhost:8081/enrich

Message enricher example

  • 1.
    Message Enricher Example TheMule Message Enricher allows the current message to be reflexive using data from a separate resource which we call it as Enrichment Resource. This Enrichment Resource can be any Message Processor and should always return a result, if it doesn’t then the Enricher will simply leave the current message untouched.
  • 2.
    • The MessageProcessor that implements the Enrichment Resource is invoked with a copy of the current message along with any flow or session variables that are present. Any modification to the current message and it’s properties and attachments or flow or session variables will not be reflected in the flow where the Enricher is configured.
  • 3.
    • Mule currentlysupports enrichment of flow variables and message headers only. • In simple language, we can say a message enricher enrich the current payload with some additional message and this is done without disturbing the actual payload..
  • 4.
    • Message Enricherwill allow only one message processor inside it if you want multiple message processors needs to be configured inside enricher, then use the Processor-chain inside message enricher and inside processor- chain use multiple message processors.
  • 6.
  • 7.
  • 8.
    After deployed successfully clickon the below url:http://localhost:8081/enrich