SlideShare a Scribd company logo
1 of 12
By Anirban Sen Chowdhary
Mule ESB has the ability to split a long and big message into small parts.
It can be done by Mule Splitter .
The Splitter Flow Control splits a message into separate fragments, then sends
these fragments one at a time to the next message processor in the flow.
So, ultimately Splitter a breaks a huge and large message into small part and that
small part can be handled individually
Let us consider we have following XML data as input:-
<AllProduct>
<productsList>
<product>
<productid>1</productid>
<productname>car</productname>
<productDesc>accessioes</productDesc>
</product>
<product>
<productid>2</productid>
<productname>watch</productname>
<productDesc>accessioes</productDesc>
</product>
<product>
<productid>3</productid>
<productname>Bike</productname>
<productDesc>accessioes</productDesc>
</product>
</productsList>
</AllProduct>
Now, we want to Split this XML into smaller part and log all the productid and
productname
So, in this case we will be splitting the xml and log all the productid and
productname in console
So, you can see we have used Mule Splitter component to split the input XMl
The Mule config will be :-
Please note, we are using XPATH 3 to retrieve the value of nodes here.
To know more about XPATH 3 please visit :-
http://www.mulesoft.org/documentation/display/current/XPath
So, if we test the example and post the input XML as following in the url
http://localhost:8085/test in a REST client :-
And we will get all the values of productid and productname in the logger along with
the total node count :-
So, here you can see how to use a Mule splitter and split the large payload into
smaller independent value. It’s pretty simple and effective in handling larges set of
data 
In my next slide I will bring some other techniques in Mule implementation .
Hope you have enjoyed this simpler version.
Keep sharing your knowledge and let our Mule community grow 
Splitting with mule

More Related Content

What's hot

What's hot (20)

Mulesoft idempotent Message Filter
Mulesoft idempotent Message FilterMulesoft idempotent Message Filter
Mulesoft idempotent Message Filter
 
Mule Esb
Mule EsbMule Esb
Mule Esb
 
Webservice vm in mule
Webservice vm in muleWebservice vm in mule
Webservice vm in mule
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Mule advanced
Mule advancedMule advanced
Mule advanced
 
Mule batch processing
Mule  batch processingMule  batch processing
Mule batch processing
 
File component in mule demo
File component in mule demoFile component in mule demo
File component in mule demo
 
ESB introduction using Mule
ESB introduction using MuleESB introduction using Mule
ESB introduction using Mule
 
Mule 3.8
Mule 3.8Mule 3.8
Mule 3.8
 
Mule esb transformers
Mule esb transformersMule esb transformers
Mule esb transformers
 
Generating Documentation for Mule ESB Application
Generating Documentation for Mule ESB ApplicationGenerating Documentation for Mule ESB Application
Generating Documentation for Mule ESB Application
 
Database component in mule
Database component in muleDatabase component in mule
Database component in mule
 
Mule database connector
Mule database connectorMule database connector
Mule database connector
 
xslt in mule
xslt in mulexslt in mule
xslt in mule
 
Mule soa
Mule soaMule soa
Mule soa
 
Configuration patterns in mule
Configuration patterns in muleConfiguration patterns in mule
Configuration patterns in mule
 
Mule with drools
Mule with droolsMule with drools
Mule with drools
 
Mule high availability
Mule high availabilityMule high availability
Mule high availability
 
Anypoint data gateway
Anypoint data gatewayAnypoint data gateway
Anypoint data gateway
 

Viewers also liked

Viewers also liked (20)

Collection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESBCollection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESB
 
Mule parsing with json
Mule parsing with jsonMule parsing with json
Mule parsing with json
 
Mule parsing with json part2
Mule parsing with json part2Mule parsing with json part2
Mule parsing with json part2
 
Scatter gather in mule
Scatter gather in muleScatter gather in mule
Scatter gather in mule
 
Mule batch job
Mule batch jobMule batch job
Mule batch job
 
Scatter gather flow in mule
Scatter gather flow in muleScatter gather flow in mule
Scatter gather flow in mule
 
Json to json transformation in mule
Json to json transformation in muleJson to json transformation in mule
Json to json 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
 
Mule with composite source
Mule with composite sourceMule with composite source
Mule with composite source
 
Dynamic file attribute
Dynamic file attributeDynamic file attribute
Dynamic file attribute
 
Xml to xml transformation in mule
Xml to xml transformation in muleXml to xml transformation in mule
Xml to xml transformation in mule
 
Simple groovy example in mule
Simple groovy example in muleSimple groovy example in mule
Simple groovy example in mule
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Mule Choice component
Mule Choice component Mule Choice component
Mule Choice component
 
Spicing your mule response
Spicing your mule responseSpicing your mule response
Spicing your mule response
 
Creating restful api using mule esb
Creating restful api using mule esbCreating restful api using mule esb
Creating restful api using mule esb
 
Using XSLT in Mule
Using XSLT in MuleUsing XSLT in Mule
Using XSLT in Mule
 
Creating dynamic json
Creating dynamic jsonCreating dynamic json
Creating dynamic json
 
Basic example using file connector in anypoint studio
Basic example using file connector in anypoint studioBasic example using file connector in anypoint studio
Basic example using file connector in anypoint studio
 

Similar to Splitting with mule

Similar to Splitting with mule (20)

Mule xml transformation
Mule xml transformationMule xml transformation
Mule xml transformation
 
Mule anypoint b2 b
Mule  anypoint b2 bMule  anypoint b2 b
Mule anypoint b2 b
 
Mule B2B
Mule B2BMule B2B
Mule B2B
 
Anypoint b2 b
Anypoint b2 bAnypoint b2 b
Anypoint b2 b
 
Mule b2 b
Mule  b2 bMule  b2 b
Mule b2 b
 
Biztalk
BiztalkBiztalk
Biztalk
 
Xml transform
Xml transformXml transform
Xml transform
 
XML Introduction
XML IntroductionXML Introduction
XML Introduction
 
Componenets of osb12c
Componenets of osb12cComponenets of osb12c
Componenets of osb12c
 
PuppetCamp - How Puppet helped us to standardize, communicate and work together
PuppetCamp - How Puppet helped us to standardize, communicate and work togetherPuppetCamp - How Puppet helped us to standardize, communicate and work together
PuppetCamp - How Puppet helped us to standardize, communicate and work together
 
Critical spare parts mail notification system for lg
Critical spare parts mail notification system for lgCritical spare parts mail notification system for lg
Critical spare parts mail notification system for lg
 
InforUMobile SMS API
InforUMobile SMS APIInforUMobile SMS API
InforUMobile SMS API
 
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
 
IS Untangle Agile IT Management On-Demand
IS Untangle Agile IT Management On-DemandIS Untangle Agile IT Management On-Demand
IS Untangle Agile IT Management On-Demand
 
Scatter gather flow in mule
Scatter gather flow in muleScatter gather flow in mule
Scatter gather flow in mule
 
InforUMobile UK SMS API
InforUMobile UK SMS APIInforUMobile UK SMS API
InforUMobile UK SMS API
 
componenets of osb12c
componenets of osb12ccomponenets of osb12c
componenets of osb12c
 
InfoSMS API for Sending SMS
InfoSMS API for Sending SMSInfoSMS API for Sending SMS
InfoSMS API for Sending SMS
 
API למפתחים לערוץ SMS במערכת InforUMobile
API למפתחים לערוץ SMS במערכת InforUMobileAPI למפתחים לערוץ SMS במערכת InforUMobile
API למפתחים לערוץ SMS במערכת InforUMobile
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
 

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)
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Splitting with mule

  • 1. By Anirban Sen Chowdhary
  • 2. Mule ESB has the ability to split a long and big message into small parts. It can be done by Mule Splitter . The Splitter Flow Control splits a message into separate fragments, then sends these fragments one at a time to the next message processor in the flow. So, ultimately Splitter a breaks a huge and large message into small part and that small part can be handled individually
  • 3.
  • 4. Let us consider we have following XML data as input:- <AllProduct> <productsList> <product> <productid>1</productid> <productname>car</productname> <productDesc>accessioes</productDesc> </product> <product> <productid>2</productid> <productname>watch</productname> <productDesc>accessioes</productDesc> </product> <product> <productid>3</productid> <productname>Bike</productname> <productDesc>accessioes</productDesc> </product> </productsList> </AllProduct>
  • 5. Now, we want to Split this XML into smaller part and log all the productid and productname So, in this case we will be splitting the xml and log all the productid and productname in console
  • 6. So, you can see we have used Mule Splitter component to split the input XMl
  • 7. The Mule config will be :- Please note, we are using XPATH 3 to retrieve the value of nodes here. To know more about XPATH 3 please visit :- http://www.mulesoft.org/documentation/display/current/XPath
  • 8. So, if we test the example and post the input XML as following in the url http://localhost:8085/test in a REST client :-
  • 9. And we will get all the values of productid and productname in the logger along with the total node count :-
  • 10. So, here you can see how to use a Mule splitter and split the large payload into smaller independent value. It’s pretty simple and effective in handling larges set of data 
  • 11. In my next slide I will bring some other techniques in Mule implementation . Hope you have enjoyed this simpler version. Keep sharing your knowledge and let our Mule community grow 