SlideShare a Scribd company logo
VM example n Mule
We all know how to expose a CXF based SOAP web services in Mule.
How about exposing the web service by decomposing a complex flow into smaller
part with VM component ??
Mule supports VM transport, which by default uses in-memory queues but can
optionally be configured to use persistent queues.
The VM transport has often been used to implement complex integrations, where the
flow is big and complex and need to be broken into smaller parts for better control.
One main reason to use this architecture, is that we can fragment the logic into
smaller pieces and can connect it and decouple each event, and is done mainly for
high performance and high control.
So now, we will see how easy it is to configure and expose a CXF web service with VM
component in Mule.
And for this we need to have 2 separate flow to expose the web service.
Advantage with breaking the flow with a queue :-
• Help to control on each event queue
• It also reduce the complexity in the Mule flow, where there is a large Mule flow
with different functionality.
• The service can be well-conditioned to load
• Preventing resources from being over committed when demand exceeds service
capacity.
• The message flow will be faster compared to other queue services like ActiveMq.
So, let’s create our flow to expose a CXF web service by breaking the flow into 2 parts
connected with VM components as follows :-
You can see that we have used a set property after CXF component to store the
method name which is actually SOAP action here as the message properties generally
get lost if passed through a VM queue.
Our Mule config will be following :-
You can see in flow2 the SOAP action stored is provided as entry point for web service
implementing java class
Now, we can test our web service in SOAPUI and see that the web service is
generating a response which means it is working perfectly
So, if we are exposing a web service using VM endpoints the first thing we should keep
in mind is to store the outbound properties of the message before sending the
message to the VM outbound endpoint .
The main reason of doing is to protect the properties and get it in our next flow, since a
message may loose it’s outbound properties while passing through a VM.
In my next slide I will bring some other techniques of implementing VM endpoint in
our flow.
Hope you have enjoyed this simpler version.
Keep sharing your knowledge everywhere and let our mule community grow 
So, Happy coding …
Webservice with vm in mule

More Related Content

What's hot (17)

PPTX
Scatter gather in mule
Anirban Sen Chowdhary
 
PPTX
Mule java part-1
Karnam Karthik
 
PDF
Introduction To Mule
Roy Prins
 
PPTX
Web service vm in mule
Mohammed246
 
PPTX
Introduction to mule esb
Khasim Cise
 
PPTX
Mule jms queues
Gandham38
 
PPTX
Soap request in mule
Praneethchampion
 
PPTX
Quartz in Mule
Mohammed246
 
PPTX
Mule soap
D.Rajesh Kumar
 
PPTX
Using seda in mule
Anirban Sen Chowdhary
 
PPTX
Soap in mule
D.Rajesh Kumar
 
PPTX
Configuration patterns in mule
sathishmca143
 
PPTX
Deploying and Running in Mule
Khasim Saheb
 
PPTX
Scatter gather in mule
Khasim Cise
 
PPTX
Xml to xml transformation in mule
Rajkattamuri
 
PPTX
Stored procedure in Mule
Khasim Saheb
 
PPTX
Mule ESB - Mock Salesforce Interface
krishananth
 
Scatter gather in mule
Anirban Sen Chowdhary
 
Mule java part-1
Karnam Karthik
 
Introduction To Mule
Roy Prins
 
Web service vm in mule
Mohammed246
 
Introduction to mule esb
Khasim Cise
 
Mule jms queues
Gandham38
 
Soap request in mule
Praneethchampion
 
Quartz in Mule
Mohammed246
 
Mule soap
D.Rajesh Kumar
 
Using seda in mule
Anirban Sen Chowdhary
 
Soap in mule
D.Rajesh Kumar
 
Configuration patterns in mule
sathishmca143
 
Deploying and Running in Mule
Khasim Saheb
 
Scatter gather in mule
Khasim Cise
 
Xml to xml transformation in mule
Rajkattamuri
 
Stored procedure in Mule
Khasim Saheb
 
Mule ESB - Mock Salesforce Interface
krishananth
 

Similar to Webservice with vm in mule (20)

PPTX
VM example in mule
Anirban Sen Chowdhary
 
PPTX
Web service vm in mule
Shahid Shaik
 
PPTX
Webservice vm in mule
Shahid Shaik
 
PPTX
Web service vm in mule
Sunil Komarapu
 
PPTX
Web service vm in mule
Hasan Syed
 
PPTX
WebService with VM Mule
irfan1008
 
PPTX
web service with vm
AbdulImrankhan7
 
PPTX
WebService with VM
Praneethchampion
 
PPTX
Simple web service vm
Sunil Komarapu
 
PPTX
Simple webservice with vm
F K
 
PPTX
Simple web service vm
Hasan Syed
 
PPTX
Simple web service vm
Mohammed246
 
PPTX
A simple webservice with vm
Khasim Saheb
 
PPTX
Webservice with vm
mdfkhan625
 
PPTX
Simple web service vm
Khan625
 
PPTX
WebService with vm
javeed_mhd
 
PPTX
Vm component in mule demo
Sudha Ch
 
PPTX
Vm Component
Durga Prasad Kakarla
 
PPTX
ESB Online Training Part 2
Vince Soliza
 
PPTX
Vm component in mule
javeed_mhd
 
VM example in mule
Anirban Sen Chowdhary
 
Web service vm in mule
Shahid Shaik
 
Webservice vm in mule
Shahid Shaik
 
Web service vm in mule
Sunil Komarapu
 
Web service vm in mule
Hasan Syed
 
WebService with VM Mule
irfan1008
 
web service with vm
AbdulImrankhan7
 
WebService with VM
Praneethchampion
 
Simple web service vm
Sunil Komarapu
 
Simple webservice with vm
F K
 
Simple web service vm
Hasan Syed
 
Simple web service vm
Mohammed246
 
A simple webservice with vm
Khasim Saheb
 
Webservice with vm
mdfkhan625
 
Simple web service vm
Khan625
 
WebService with vm
javeed_mhd
 
Vm component in mule demo
Sudha Ch
 
Vm Component
Durga Prasad Kakarla
 
ESB Online Training Part 2
Vince Soliza
 
Vm component in mule
javeed_mhd
 
Ad

More from AbdulImrankhan7 (20)

PPT
Web services Overview in depth
AbdulImrankhan7
 
PPTX
Install sonarqube plugin
AbdulImrankhan7
 
PPTX
Junit in mule
AbdulImrankhan7
 
PPTX
commit a project in svn
AbdulImrankhan7
 
PPTX
Github plugin setup in anypoint studio
AbdulImrankhan7
 
PPTX
For each component
AbdulImrankhan7
 
PPTX
Filter expression
AbdulImrankhan7
 
PPTX
Mule File component
AbdulImrankhan7
 
PPTX
Mule Database component
AbdulImrankhan7
 
PPTX
Mule Choice component
AbdulImrankhan7
 
PPTX
Mule stored procedure
AbdulImrankhan7
 
PPTX
Deploying and running in mule standalone
AbdulImrankhan7
 
PPT
Mule real-world
AbdulImrankhan7
 
PPT
Mule Overview
AbdulImrankhan7
 
PPTX
Validating a soap request in mule
AbdulImrankhan7
 
PPTX
Using xslt in mule
AbdulImrankhan7
 
PPTX
Simple groovy example in mule
AbdulImrankhan7
 
PPTX
Scatter gather flow control
AbdulImrankhan7
 
PPTX
Mule with velocity
AbdulImrankhan7
 
PPTX
Mule with rabbit mq
AbdulImrankhan7
 
Web services Overview in depth
AbdulImrankhan7
 
Install sonarqube plugin
AbdulImrankhan7
 
Junit in mule
AbdulImrankhan7
 
commit a project in svn
AbdulImrankhan7
 
Github plugin setup in anypoint studio
AbdulImrankhan7
 
For each component
AbdulImrankhan7
 
Filter expression
AbdulImrankhan7
 
Mule File component
AbdulImrankhan7
 
Mule Database component
AbdulImrankhan7
 
Mule Choice component
AbdulImrankhan7
 
Mule stored procedure
AbdulImrankhan7
 
Deploying and running in mule standalone
AbdulImrankhan7
 
Mule real-world
AbdulImrankhan7
 
Mule Overview
AbdulImrankhan7
 
Validating a soap request in mule
AbdulImrankhan7
 
Using xslt in mule
AbdulImrankhan7
 
Simple groovy example in mule
AbdulImrankhan7
 
Scatter gather flow control
AbdulImrankhan7
 
Mule with velocity
AbdulImrankhan7
 
Mule with rabbit mq
AbdulImrankhan7
 
Ad

Recently uploaded (20)

PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 

Webservice with vm in mule

  • 2. We all know how to expose a CXF based SOAP web services in Mule. How about exposing the web service by decomposing a complex flow into smaller part with VM component ??
  • 3. Mule supports VM transport, which by default uses in-memory queues but can optionally be configured to use persistent queues. The VM transport has often been used to implement complex integrations, where the flow is big and complex and need to be broken into smaller parts for better control.
  • 4. One main reason to use this architecture, is that we can fragment the logic into smaller pieces and can connect it and decouple each event, and is done mainly for high performance and high control. So now, we will see how easy it is to configure and expose a CXF web service with VM component in Mule. And for this we need to have 2 separate flow to expose the web service.
  • 5. Advantage with breaking the flow with a queue :- • Help to control on each event queue • It also reduce the complexity in the Mule flow, where there is a large Mule flow with different functionality. • The service can be well-conditioned to load • Preventing resources from being over committed when demand exceeds service capacity. • The message flow will be faster compared to other queue services like ActiveMq.
  • 6. So, let’s create our flow to expose a CXF web service by breaking the flow into 2 parts connected with VM components as follows :-
  • 7. You can see that we have used a set property after CXF component to store the method name which is actually SOAP action here as the message properties generally get lost if passed through a VM queue.
  • 8. Our Mule config will be following :- You can see in flow2 the SOAP action stored is provided as entry point for web service implementing java class
  • 9. Now, we can test our web service in SOAPUI and see that the web service is generating a response which means it is working perfectly
  • 10. So, if we are exposing a web service using VM endpoints the first thing we should keep in mind is to store the outbound properties of the message before sending the message to the VM outbound endpoint . The main reason of doing is to protect the properties and get it in our next flow, since a message may loose it’s outbound properties while passing through a VM.
  • 11. In my next slide I will bring some other techniques of implementing VM endpoint in our flow. Hope you have enjoyed this simpler version. Keep sharing your knowledge everywhere and let our mule community grow  So, Happy coding …