SlideShare a Scribd company logo
WebService with VM in Mule
Presented by Prince
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 Mule

More Related Content

PPTX
Mule high availability (ha) cluster
PPTX
Mule soa
PPTX
VM example in mule
PPTX
Mule Esb
PPTX
Mulesoft idempotent Message Filter
PPTX
Working of mule
PPTX
Create Account in Salesforce using Mule ESB
PPTX
Soap in mule
Mule high availability (ha) cluster
Mule soa
VM example in mule
Mule Esb
Mulesoft idempotent Message Filter
Working of mule
Create Account in Salesforce using Mule ESB
Soap in mule

What's hot (13)

PPTX
Validate soap request in mule
PPT
mulesoft at a glance
PPT
Mule connectors
PPT
Flowvar and Sessionvar in Mule
PPT
Mule and web services
PPTX
Web service vm in mule
PPTX
Mule quartz
PPTX
Vm component in mule demo
PPTX
Mule esb
PPTX
Mule esb
PPT
Mulesoft at a glance
PPTX
Mule soa
PPTX
Webservice vm in mule
Validate soap request in mule
mulesoft at a glance
Mule connectors
Flowvar and Sessionvar in Mule
Mule and web services
Web service vm in mule
Mule quartz
Vm component in mule demo
Mule esb
Mule esb
Mulesoft at a glance
Mule soa
Webservice vm in mule
Ad

Viewers also liked (20)

PPTX
Mule Esb Introduction
PPTX
Automatic documentation with mule
 
PPTX
Mapping and listing with mule
PPTX
Idempotent filter in mule
PPT
Multicultural Competence
PPTX
Mule using Salesforce
PPTX
When and Where to Embed Business Intelligence
PPTX
Hola mundo en Anypoint Studio
PPTX
Voxxed Days Thesaloniki 2016 - The Long Road
PPT
Mule esb 3.8
PPTX
Mulesoft cloudhub
PPTX
Long term media coverage of climate change
PPTX
Data Stack Considerations: Build vs. Buy at Tout
PPTX
Mule batch processing
PPTX
Mule Esb
PDF
gRPC Design and Implementation
PDF
LeanIX Enterprise Architecture Management @ 3rd EA Connect Day 2016
PDF
Google BigQuery
PDF
Robert Kubis - gRPC - boilerplate to high-performance scalable APIs - code.t...
PDF
Google Cloud Platform at Vente-Exclusive.com
Mule Esb Introduction
Automatic documentation with mule
 
Mapping and listing with mule
Idempotent filter in mule
Multicultural Competence
Mule using Salesforce
When and Where to Embed Business Intelligence
Hola mundo en Anypoint Studio
Voxxed Days Thesaloniki 2016 - The Long Road
Mule esb 3.8
Mulesoft cloudhub
Long term media coverage of climate change
Data Stack Considerations: Build vs. Buy at Tout
Mule batch processing
Mule Esb
gRPC Design and Implementation
LeanIX Enterprise Architecture Management @ 3rd EA Connect Day 2016
Google BigQuery
Robert Kubis - gRPC - boilerplate to high-performance scalable APIs - code.t...
Google Cloud Platform at Vente-Exclusive.com
Ad

Similar to WebService with VM Mule (20)

PPTX
Web service vm in mule
PPTX
Webservice vm in mule
PPTX
Web service vm in mule
PPTX
Web service vm in mule
PPTX
Webservice with vm in mule
PPTX
Webservice with vm in mule
PPTX
Webservice with vm in mule
PPTX
Webservice with vm in mule
PPTX
Webservice with vm in mule
PPTX
Webservice with vm in mule
PPTX
Simple webservice with vm
 
PPTX
Webservice with vm
PPTX
Simple web service vm
PPTX
Simple web service vm
PPTX
WebService with vm
PPTX
Simple web service vm
PPTX
web service with vm
PPTX
A simple webservice with vm
PPTX
WebService with VM
PPTX
Simple web service vm
Web service vm in mule
Webservice vm in mule
Web service vm in mule
Web service vm in mule
Webservice with vm in mule
Webservice with vm in mule
Webservice with vm in mule
Webservice with vm in mule
Webservice with vm in mule
Webservice with vm in mule
Simple webservice with vm
 
Webservice with vm
Simple web service vm
Simple web service vm
WebService with vm
Simple web service vm
web service with vm
A simple webservice with vm
WebService with VM
Simple web service vm

More from irfan1008 (20)

PPTX
Converting with custom transformer
PPTX
Caching and invalidating with managed store
PPTX
Cache for community edition
PPTX
Mule
PPTX
Groovy with Mule
PPTX
Validate Soap Request in Mule
PPTX
Xslt in mule
PPT
Developing Oracle Connector Using Mule
PPTX
Send email attachment using smtp in mule esb
PPT
Mule oracle connectors
PPT
Mule google connectors
PPT
Mule execution
PPT
Mule database-connectors
PPT
Mule batch processing
PPT
Mule architecture
PPT
Mule anypoint exchange
PPTX
Mule soap
PPTX
Mule soa
PPT
Mule security saml
PPT
Mule security jaas
Converting with custom transformer
Caching and invalidating with managed store
Cache for community edition
Mule
Groovy with Mule
Validate Soap Request in Mule
Xslt in mule
Developing Oracle Connector Using Mule
Send email attachment using smtp in mule esb
Mule oracle connectors
Mule google connectors
Mule execution
Mule database-connectors
Mule batch processing
Mule architecture
Mule anypoint exchange
Mule soap
Mule soa
Mule security saml
Mule security jaas

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Cloud computing and distributed systems.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Modernizing your data center with Dell and AMD
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPT
Teaching material agriculture food technology
PPTX
Big Data Technologies - Introduction.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Cloud computing and distributed systems.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Per capita expenditure prediction using model stacking based on satellite ima...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Spectral efficient network and resource selection model in 5G networks
Modernizing your data center with Dell and AMD
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Teaching material agriculture food technology
Big Data Technologies - Introduction.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
NewMind AI Weekly Chronicles - August'25 Week I
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

WebService with VM Mule

  • 1. WebService with VM in Mule Presented by Prince
  • 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 …