SlideShare a Scribd company logo
Mule Idempotent Filter
Part II
RAMANAN T D
Mule ESB – An ESB for the Modern Enterprise
Mule ESB – An ESB for the Modern Enterprise
 We’ll see how message uniqueness can be achieved
through simple-text-file-store with a sample use case in this
presentation.
Idempotent Filter using simple-text-file-store
1
Mule ESB – An ESB for the Modern Enterprise
Consider there is a link with unique uri parameter i.e. basically it contains unique
key to validate user request.
With the help of message idempotent filter each request will be validated.
URI for uniqueness: http://localhost:8081/textfilestoreTest
Here textfilestoreTest is considered as unique endpoint for a particular request.
Use Case - Idempotent Filter using simple-text-file-store
2
Mule ESB – An ESB for the Modern Enterprise
Flow: Idempotent Message filter as simple-text-file-store
3
Mule ESB – An ESB for the Modern Enterprise
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-
current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<flow name="idempotent-filterFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/textfilestoreTest" doc:name="HTTP"/>
<idempotent-message-filter doc:name="Idempotent Message" throwOnUnaccepted="true" idExpression="#[message:payload]">
<simple-text-file-store directory="./idempotent"/>
</idempotent-message-filter>
<logger level="INFO" doc:name="Logger" message="Idempotent Message Passed inside Log"/>
<set-payload doc:name="Set Payload" value="Idempotent Message Passed inside payload"/>
<catch-exception-strategy doc:name="Catch Exception Strategy">
<set-payload value=" Exception : Duplicate message!" doc:name="Set Payload"/>
</catch-exception-strategy>
</flow>
</mule>
Mule XML Configuration
4
Mule ESB – An ESB for the Modern Enterprise
Let us starting testing our application
Note:
For the first time we will see browser display "Idempotent Message Passed inside payload" as the
message payload is new and unique
Testing – Initial Request
5
Mule ESB – An ESB for the Modern Enterprise
For the second time we will see browser display “EXCEPTION: Duplicate message Found” as the message payload is now
same and duplicate
Testing – Second Request
6
Mule ESB – An ESB for the Modern Enterprise
Object store location inside Idempotent Filter
7
Note:
The object store location specified
inside Idempotent Message filter
settings contains messages with
unique ID

More Related Content

PDF
Mule Idempotent Filter - Part I
PDF
Mule 4 - Hello World
PPTX
xslt in mule
PPTX
Mule idempotent filter and Object Store
PPTX
Message properties component in mule
PPTX
Mule esb add logger to existing flow
PPT
Anypoint connectorfor ibm as 400
PPTX
Introduction to testing mule
Mule Idempotent Filter - Part I
Mule 4 - Hello World
xslt in mule
Mule idempotent filter and Object Store
Message properties component in mule
Mule esb add logger to existing flow
Anypoint connectorfor ibm as 400
Introduction to testing mule

What's hot (14)

PPTX
Mule esb :Data Weave
PPTX
Send email attachment using smtp in mule esb
PPTX
Using message enricher
PPTX
Deploying and running mule standalone
PPTX
Xml to xml transformation in mule
PPTX
Idempotent filter in Mule
 
PPTX
Idempotent filter with simple file
PPTX
For each component in mule
PPTX
Filter expression in mule
PPTX
Scatter and gather in mule
PPTX
Mule message enricher
PPTX
Configurare https mule
PPTX
Idempotent filter in mule
PPTX
Choice component in mule
Mule esb :Data Weave
Send email attachment using smtp in mule esb
Using message enricher
Deploying and running mule standalone
Xml to xml transformation in mule
Idempotent filter in Mule
 
Idempotent filter with simple file
For each component in mule
Filter expression in mule
Scatter and gather in mule
Mule message enricher
Configurare https mule
Idempotent filter in mule
Choice component in mule
Ad

Similar to Mule Idempotent Filter - Part II (20)

PPTX
Mulesoft idempotent Message Filter
PPTX
Using idempotent filter
PPTX
Mule esb - How to use Idempotent Filters in 5 minutes
PPTX
Idempotent filter with simple file
PPTX
Idempotent filter with mule
PPTX
Idempotent filter in mule
PPTX
Idempotent filter with simple file
PPTX
Idempotent filter with simple file
PPTX
Idempotent filter with simple file
PPTX
Idempotent filter with simple file
PPTX
Idempotent filter with simple file
ODP
Idempotent filter
PPTX
Filter and object
PPTX
Filter example
PDF
Global Scale ESB with Mule
PPTX
Mule ESB - Why and how?
PPTX
Mule esb usecase
PDF
Mule esb presentation
ODP
PDF
Why Mulesoft ?
Mulesoft idempotent Message Filter
Using idempotent filter
Mule esb - How to use Idempotent Filters in 5 minutes
Idempotent filter with simple file
Idempotent filter with mule
Idempotent filter in mule
Idempotent filter with simple file
Idempotent filter with simple file
Idempotent filter with simple file
Idempotent filter with simple file
Idempotent filter with simple file
Idempotent filter
Filter and object
Filter example
Global Scale ESB with Mule
Mule ESB - Why and how?
Mule esb usecase
Mule esb presentation
Why Mulesoft ?
Ad

Recently uploaded (20)

PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
L1 - Introduction to python Backend.pptx
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
medical staffing services at VALiNTRY
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
ai tools demonstartion for schools and inter college
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Essential Infomation Tech presentation.pptx
PDF
System and Network Administration Chapter 2
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
L1 - Introduction to python Backend.pptx
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Odoo POS Development Services by CandidRoot Solutions
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
medical staffing services at VALiNTRY
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Adobe Illustrator 28.6 Crack My Vision of Vector Design
ai tools demonstartion for schools and inter college
VVF-Customer-Presentation2025-Ver1.9.pptx
Wondershare Filmora 15 Crack With Activation Key [2025
How to Choose the Right IT Partner for Your Business in Malaysia
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Design an Analysis of Algorithms I-SECS-1021-03
Essential Infomation Tech presentation.pptx
System and Network Administration Chapter 2
How to Migrate SBCGlobal Email to Yahoo Easily
wealthsignaloriginal-com-DS-text-... (1).pdf

Mule Idempotent Filter - Part II

  • 1. Mule Idempotent Filter Part II RAMANAN T D Mule ESB – An ESB for the Modern Enterprise
  • 2. Mule ESB – An ESB for the Modern Enterprise  We’ll see how message uniqueness can be achieved through simple-text-file-store with a sample use case in this presentation. Idempotent Filter using simple-text-file-store 1
  • 3. Mule ESB – An ESB for the Modern Enterprise Consider there is a link with unique uri parameter i.e. basically it contains unique key to validate user request. With the help of message idempotent filter each request will be validated. URI for uniqueness: http://localhost:8081/textfilestoreTest Here textfilestoreTest is considered as unique endpoint for a particular request. Use Case - Idempotent Filter using simple-text-file-store 2
  • 4. Mule ESB – An ESB for the Modern Enterprise Flow: Idempotent Message filter as simple-text-file-store 3
  • 5. Mule ESB – An ESB for the Modern Enterprise <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans- current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"> <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/> <flow name="idempotent-filterFlow"> <http:listener config-ref="HTTP_Listener_Configuration" path="/textfilestoreTest" doc:name="HTTP"/> <idempotent-message-filter doc:name="Idempotent Message" throwOnUnaccepted="true" idExpression="#[message:payload]"> <simple-text-file-store directory="./idempotent"/> </idempotent-message-filter> <logger level="INFO" doc:name="Logger" message="Idempotent Message Passed inside Log"/> <set-payload doc:name="Set Payload" value="Idempotent Message Passed inside payload"/> <catch-exception-strategy doc:name="Catch Exception Strategy"> <set-payload value=" Exception : Duplicate message!" doc:name="Set Payload"/> </catch-exception-strategy> </flow> </mule> Mule XML Configuration 4
  • 6. Mule ESB – An ESB for the Modern Enterprise Let us starting testing our application Note: For the first time we will see browser display "Idempotent Message Passed inside payload" as the message payload is new and unique Testing – Initial Request 5
  • 7. Mule ESB – An ESB for the Modern Enterprise For the second time we will see browser display “EXCEPTION: Duplicate message Found” as the message payload is now same and duplicate Testing – Second Request 6
  • 8. Mule ESB – An ESB for the Modern Enterprise Object store location inside Idempotent Filter 7 Note: The object store location specified inside Idempotent Message filter settings contains messages with unique ID