SlideShare a Scribd company logo
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.
In last post we have seen this splitter with an XML input.. This part we will see it
with a JSON input
Splitting with mule part2
Let us consider we have following JSON data as input:-
{
"getInsertOperation": {
"getInsertContext": {
"messageId": "21",
"messageDateTime": "2014-08-17T14:07:30+0521"
},
"getInsertBody": {
"getInsertRequest": {
"userId": "test123",
"events": [
{
"eventId": 1,
"eventTimestamp": "2015-06-17T14:07:30+0521"
},
{
"eventId": 2,
"eventTimestamp": "2014-12-17T14:07:30+0521"
},
{
"eventId": 0,
"eventTimestamp": "2013-08-17T14:07:30+0521"
}
]
}
}
}
}
Now, you can this JSON has a list of elements as eventId and eventTimestamp
which is repeating.
So, in this case we will be splitting the JSON and log all the eventId and
eventTimestamp in console
So, you can see we have used Mule Splitter component to split the input JSON.
When we will pass the JSON request to the TestFlow , it will call the AsyncFlow where all
the splitting and logging will take place
The Mule config will be :-
You can see that splitter is splitting JSON array and after that it is logging
all the eventId and eventTimestamp in a logger
So, if we test the example and post the input JSON as following in the url
http://localhost:8081/test in a REST client :-
And we will get all the values of eventId and eventTimestamp 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 whether it is in XML or in JSON format. 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 part2

More Related Content

PPTX
Xslt with mule
PPTX
Mulesoft http connector
PPTX
Json to json transformation in mule
PPTX
Xslt in mule
PPTX
Converting with custom transformer
 
PPTX
Mule Esb Data Weave
PPT
Mule - HTTP Listener
PPTX
Send email attachment using smtp in mule esb
Xslt with mule
Mulesoft http connector
Json to json transformation in mule
Xslt in mule
Converting with custom transformer
 
Mule Esb Data Weave
Mule - HTTP Listener
Send email attachment using smtp in mule esb

What's hot (14)

PPTX
Mule with composite source
PPTX
Mule xml transformation
ODP
Mule ESB SMTP Connector Integration
PPTX
Mule requestor component
PPTX
Idempotent filter with simple file
PPTX
Creating dynamic json in Mule
 
PPTX
xslt in mule
PPTX
Accessing jms in mule using groovy
PPTX
Message properties component in Mule
PPTX
Mule soap
PPTX
Xslt in mule
PPTX
Mule esb :Data Weave
PPTX
Mulesoft vm transport reference
PPTX
Mule esb
Mule with composite source
Mule xml transformation
Mule ESB SMTP Connector Integration
Mule requestor component
Idempotent filter with simple file
Creating dynamic json in Mule
 
xslt in mule
Accessing jms in mule using groovy
Message properties component in Mule
Mule soap
Xslt in mule
Mule esb :Data Weave
Mulesoft vm transport reference
Mule esb
Ad

Viewers also liked (20)

PPTX
Mapping and listing with mule
PPTX
Dynamic file attribute
PPTX
Splitting with mule
PPTX
Xml to xml transformation in mule
PPTX
Creating dynamic json
PPTX
Delaying jms with mule
PPTX
Combing xml in Mule
PPTX
Sharing resources with mule
PPTX
Mule dynamic name space
PPTX
Sending mail with attachment
PPTX
Calling flow from another application
PPTX
Running mule from java
PPTX
Process file one after another
PPTX
Accessing jms in mule using groovy
PPTX
Mule with drools
PPTX
Web application with mule
PPTX
Calling flow from another application 2
PPTX
Json to json transformation in mule
PPTX
VM example in mule
PPTX
Mule batch job
Mapping and listing with mule
Dynamic file attribute
Splitting with mule
Xml to xml transformation in mule
Creating dynamic json
Delaying jms with mule
Combing xml in Mule
Sharing resources with mule
Mule dynamic name space
Sending mail with attachment
Calling flow from another application
Running mule from java
Process file one after another
Accessing jms in mule using groovy
Mule with drools
Web application with mule
Calling flow from another application 2
Json to json transformation in mule
VM example in mule
Mule batch job
Ad

Similar to Splitting with mule part2 (20)

PPTX
Create dynamic json using mule
PPTX
Creating dynamic json in mule
PPTX
Creating dynamic json
PPTX
Creating dynamic json
PPTX
Creating dynamic json
PPTX
Creating dynamic json
PPTX
Creating dynamic json
PPTX
Creating dynamic json
PPTX
Creating dynamic json
PPTX
Creating dynamic json
PPTX
Json
PPT
Complex Event Processing with Esper and WSO2 ESB
PPTX
Composite source in bound and out-bound
PPTX
Send email attachment using smtp in mule esb
PPTX
Mule esb How to convert from Json to Xml in 5 minutes
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
PPTX
Send email attachment using smtp in mule esb
Create dynamic json using mule
Creating dynamic json in mule
Creating dynamic json
Creating dynamic json
Creating dynamic json
Creating dynamic json
Creating dynamic json
Creating dynamic json
Creating dynamic json
Creating dynamic json
Json
Complex Event Processing with Esper and WSO2 ESB
Composite source in bound and out-bound
Send email attachment using smtp in mule esb
Mule esb How to convert from Json to Xml in 5 minutes
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
Send email attachment using smtp in mule esb

More from Anirban Sen Chowdhary (20)

PPTX
Change the game with Game changer
PPTX
Ring central desktop app overview
PPTX
Overview in ringcentral digital line
PPTX
Some basics with ring central
PPTX
Ring central and python
PPTX
RingCentral application development overview
PPTX
Cloze connect ringcentral
PPTX
Overview on ring central errors part 4
PPTX
Setting up your ring central sandbox in steps
PPTX
Overview on ring central errors: part 2
PPTX
Overview on ring central errors
PPTX
Call recording overview ring central
PPTX
Ring central engaging with amazon alexa
PPTX
How ring central sdk changing the game
PPTX
When ring central connect salesforce
PPTX
Mule 4 connecting ring central
PPTX
Ring central sdk
PPTX
Ring central with okta
PPTX
Ring central connecting salesforce overview
PPTX
Ring central call logs overview (part 2)
Change the game with Game changer
Ring central desktop app overview
Overview in ringcentral digital line
Some basics with ring central
Ring central and python
RingCentral application development overview
Cloze connect ringcentral
Overview on ring central errors part 4
Setting up your ring central sandbox in steps
Overview on ring central errors: part 2
Overview on ring central errors
Call recording overview ring central
Ring central engaging with amazon alexa
How ring central sdk changing the game
When ring central connect salesforce
Mule 4 connecting ring central
Ring central sdk
Ring central with okta
Ring central connecting salesforce overview
Ring central call logs overview (part 2)

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Cloud computing and distributed systems.
NewMind AI Weekly Chronicles - August'25 Week I
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MYSQL Presentation for SQL database connectivity
Review of recent advances in non-invasive hemoglobin estimation
Building Integrated photovoltaic BIPV_UPV.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Diabetes mellitus diagnosis method based random forest with bat algorithm
Network Security Unit 5.pdf for BCA BBA.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Dropbox Q2 2025 Financial Results & Investor Presentation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Advanced methodologies resolving dimensionality complications for autism neur...
Cloud computing and distributed systems.

Splitting with mule part2

  • 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. In last post we have seen this splitter with an XML input.. This part we will see it with a JSON input
  • 4. Let us consider we have following JSON data as input:- { "getInsertOperation": { "getInsertContext": { "messageId": "21", "messageDateTime": "2014-08-17T14:07:30+0521" }, "getInsertBody": { "getInsertRequest": { "userId": "test123", "events": [ { "eventId": 1, "eventTimestamp": "2015-06-17T14:07:30+0521" }, { "eventId": 2, "eventTimestamp": "2014-12-17T14:07:30+0521" }, { "eventId": 0, "eventTimestamp": "2013-08-17T14:07:30+0521" } ] } } } }
  • 5. Now, you can this JSON has a list of elements as eventId and eventTimestamp which is repeating. So, in this case we will be splitting the JSON and log all the eventId and eventTimestamp in console
  • 6. So, you can see we have used Mule Splitter component to split the input JSON. When we will pass the JSON request to the TestFlow , it will call the AsyncFlow where all the splitting and logging will take place
  • 7. The Mule config will be :- You can see that splitter is splitting JSON array and after that it is logging all the eventId and eventTimestamp in a logger
  • 8. So, if we test the example and post the input JSON as following in the url http://localhost:8081/test in a REST client :-
  • 9. And we will get all the values of eventId and eventTimestamp 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 whether it is in XML or in JSON format. 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 