SlideShare a Scribd company logo
WebService with VM in 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 …
Web service vm in mule

More Related Content

PPTX
Mule soa
PPTX
Vm component in mule demo
PPTX
Mule high availability (ha) cluster
PPTX
Mulesoft idempotent Message Filter
PPTX
Mule esb
PDF
Mule Integration Simplified
PPTX
Mule requester
PPTX
Mule soa
Mule soa
Vm component in mule demo
Mule high availability (ha) cluster
Mulesoft idempotent Message Filter
Mule esb
Mule Integration Simplified
Mule requester
Mule soa

What's hot (13)

PPTX
Mule esb parts
PPTX
Web service vm in mule
PPTX
Mule message
PPTX
Mule integration
PPTX
Using groovy in mule
PPTX
WebService with VM Mule
PPTX
Integration with Microsoft Azure using Mule ESB
PPTX
Mule concepts
PPTX
Webservice vm in mule
PPTX
Mule esb
PDF
Introduction To Mule
PPT
Mule esb overview
PPTX
VM example in mule
Mule esb parts
Web service vm in mule
Mule message
Mule integration
Using groovy in mule
WebService with VM Mule
Integration with Microsoft Azure using Mule ESB
Mule concepts
Webservice vm in mule
Mule esb
Introduction To Mule
Mule esb overview
VM example in mule
Ad

Similar to Web service vm in mule (20)

PPTX
WebService with vm
PPTX
Simple web service vm
PPTX
A simple webservice with vm
PPTX
WebService with VM
PPTX
Simple web service vm
PPTX
Simple webservice with vm
 
PPTX
Simple web service vm
PPTX
Webservice with vm
PPTX
Simple web service vm
PPTX
web service with vm
PPTX
Mulesoft vm transport reference
PPTX
Mule execution units
PPTX
Restservice with active mq
PPTX
Using mule with web services
PDF
WCF Interview Questions By Scholarhat PDF
PPTX
What is Mule ESB
PPTX
Mule esb
PPTX
About Mule execution units
PPTX
Mule esb Basics
PPTX
Mule esb
WebService with vm
Simple web service vm
A simple webservice with vm
WebService with VM
Simple web service vm
Simple webservice with vm
 
Simple web service vm
Webservice with vm
Simple web service vm
web service with vm
Mulesoft vm transport reference
Mule execution units
Restservice with active mq
Using mule with web services
WCF Interview Questions By Scholarhat PDF
What is Mule ESB
Mule esb
About Mule execution units
Mule esb Basics
Mule esb
Ad

More from Hasan Syed (20)

PPTX
Xslt in mule
PPTX
Validate soap request in mule
PPTX
Scatter gather flow control
PPTX
Mule with velocity
PPTX
Mule with rabbit mq
PPTX
Mule with quartz
PPTX
Mule with drools
PPTX
Mule esb
PPTX
Maven iii
PPTX
Maven ii
PPTX
Maven part 1
PPTX
Jenkins3
PPTX
Jenkins2
PPTX
Jenkins
PPTX
Idempotent filter with simple file
PPTX
Groovy with mule
PPTX
Creating dynamic json
PPTX
Converting with custom transformer
PPTX
Caching and invalidating with managed store
PPTX
Cache for community edition
Xslt in mule
Validate soap request in mule
Scatter gather flow control
Mule with velocity
Mule with rabbit mq
Mule with quartz
Mule with drools
Mule esb
Maven iii
Maven ii
Maven part 1
Jenkins3
Jenkins2
Jenkins
Idempotent filter with simple file
Groovy with mule
Creating dynamic json
Converting with custom transformer
Caching and invalidating with managed store
Cache for community edition

Recently uploaded (20)

PPTX
1. Introduction to Computer Programming.pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Mushroom cultivation and it's methods.pdf
1. Introduction to Computer Programming.pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Per capita expenditure prediction using model stacking based on satellite ima...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
TLE Review Electricity (Electricity).pptx
OMC Textile Division Presentation 2021.pptx
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
A comparative analysis of optical character recognition models for extracting...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Group 1 Presentation -Planning and Decision Making .pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Network Security Unit 5.pdf for BCA BBA.
Programs and apps: productivity, graphics, security and other tools
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25-Week II
MIND Revenue Release Quarter 2 2025 Press Release
Heart disease approach using modified random forest and particle swarm optimi...
Mushroom cultivation and it's methods.pdf

Web service 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 …