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

PPTX
Mule high availability (ha) cluster
PPTX
Webservice vm in mule
PPTX
Send email attachment using smtp in mule esb
PPTX
How muleworks
PPTX
Web service vm in mule
PPTX
Mule esb parts
PPTX
Mulesoft idempotent Message Filter
PDF
Mule Integration Simplified
Mule high availability (ha) cluster
Webservice vm in mule
Send email attachment using smtp in mule esb
How muleworks
Web service vm in mule
Mule esb parts
Mulesoft idempotent Message Filter
Mule Integration Simplified

What's hot (18)

PPT
Mule ESB
PPTX
Mule soa
PPTX
Vm component in mule demo
PPTX
Introduction to mule esb
PPT
Mule technology
PPTX
Mule esb
PPTX
Mule integration
PPTX
Mule esb
PPTX
Mule message
PPTX
Core concepts in mule
PPTX
Mule Esb
PPT
Mule connectors
PPTX
Introduce Mule
PPTX
Mule esb for beginners
PPTX
Mule soa
PPTX
Mule enterprise service introduction
PPTX
Mule high availability
PPTX
Mule esb made system integration easy
Mule ESB
Mule soa
Vm component in mule demo
Introduction to mule esb
Mule technology
Mule esb
Mule integration
Mule esb
Mule message
Core concepts in mule
Mule Esb
Mule connectors
Introduce Mule
Mule esb for beginners
Mule soa
Mule enterprise service introduction
Mule high availability
Mule esb made system integration easy
Ad

Viewers also liked (9)

ODP
Arch andmodulesmule
PPT
Architecture of mule
PPTX
Webservice with vm in mule
PPT
Mule architecture
PPTX
Webservice with vm in mule
PPTX
Service oriented online architecture using mule
PPT
Mule esb-architecture
PPT
WebServices introduction in Mule
 
PPTX
Message processor in mule
Arch andmodulesmule
Architecture of mule
Webservice with vm in mule
Mule architecture
Webservice with vm in mule
Service oriented online architecture using mule
Mule esb-architecture
WebServices introduction in Mule
 
Message processor in mule
Ad

Similar to Webservice with vm in mule (20)

PPTX
VM example in mule
PPTX
WebService with VM Mule
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
PPTX
What is Mule ESB
PPTX
Mule esb
PDF
WCF Interview Questions By Scholarhat PDF
PPTX
About Mule execution units
VM example in mule
WebService with VM Mule
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
What is Mule ESB
Mule esb
WCF Interview Questions By Scholarhat PDF
About Mule execution units

More from mdfkhan625 (20)

PPTX
Mapping and listing with mule
PPTX
How to use message properties component
PPTX
How to use expression filter
PPTX
Data weave
PPT
Anypoint data gateway
PPTX
Validating soap request in mule
PPTX
Using xslt in mule
PPTX
Groovy example 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
Idempotent filter with simple file
PPTX
Creating dynamic json
PPTX
Converting with custom transformer
PPTX
Caching and invalidating with managed store
PPTX
Cache for community edition
PPTX
Automatic documantation with mule
Mapping and listing with mule
How to use message properties component
How to use expression filter
Data weave
Anypoint data gateway
Validating soap request in mule
Using xslt in mule
Groovy example in mule
Scatter gather flow control
Mule with velocity
Mule with rabbit mq
Mule with quartz
Mule with drools
Mule esb
Idempotent filter with simple file
Creating dynamic json
Converting with custom transformer
Caching and invalidating with managed store
Cache for community edition
Automatic documantation with mule

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPT
Teaching material agriculture food technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Big Data Technologies - Introduction.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
cuic standard and advanced reporting.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Big Data Technologies - Introduction.pptx
sap open course for s4hana steps from ECC to s4
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25 Week I
The AUB Centre for AI in Media Proposal.docx
Encapsulation_ Review paper, used for researhc scholars
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MYSQL Presentation for SQL database connectivity
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Empathic Computing: Creating Shared Understanding
Building Integrated photovoltaic BIPV_UPV.pdf

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 …