SlideShare a Scribd company logo
1 of 12
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 …
Webservice vm in mule

More Related Content

What's hot (8)

Mule message
Mule messageMule message
Mule message
 
Filtering jms messages with mule
Filtering jms messages with muleFiltering jms messages with mule
Filtering jms messages with mule
 
Mule and web services
Mule and web servicesMule and web services
Mule and web services
 
Webservice vm in mule
Webservice vm in muleWebservice vm in mule
Webservice vm in mule
 
Mule soap
Mule soapMule soap
Mule soap
 
Using groovy in mule
Using groovy in muleUsing groovy in mule
Using groovy in mule
 
Soap in mule
Soap in muleSoap in mule
Soap in mule
 
Flowvar and Sessionvar in Mule
Flowvar and Sessionvar in MuleFlowvar and Sessionvar in Mule
Flowvar and Sessionvar in Mule
 

Viewers also liked

Mule integration-application
Mule integration-applicationMule integration-application
Mule integration-applicationNaresh Naidu
 
Mule security - jaas
Mule  security - jaasMule  security - jaas
Mule security - jaascharan teja R
 
Fetch records from mysql using mule esb
Fetch records from mysql using mule esbFetch records from mysql using mule esb
Fetch records from mysql using mule esbAnilKumar Etagowni
 
Mule ESB Tutorial Part 3
Mule ESB Tutorial Part 3Mule ESB Tutorial Part 3
Mule ESB Tutorial Part 3Srikanth N
 
Mule concepts flows
Mule concepts flowsMule concepts flows
Mule concepts flowskunal vishe
 
Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts componentskunal vishe
 
MuleSoft CloudHub FAQ
MuleSoft CloudHub FAQMuleSoft CloudHub FAQ
MuleSoft CloudHub FAQShanky Gupta
 
Future of Integration | MuleSoft
Future of Integration | MuleSoftFuture of Integration | MuleSoft
Future of Integration | MuleSoftMuleSoft
 
Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1Srikanth N
 
Mule ESB - Integration Simplified
Mule ESB - Integration SimplifiedMule ESB - Integration Simplified
Mule ESB - Integration SimplifiedRich Software
 
Application Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoftApplication Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoftMuleSoft
 

Viewers also liked (14)

Mule integration-application
Mule integration-applicationMule integration-application
Mule integration-application
 
Mule security - jaas
Mule  security - jaasMule  security - jaas
Mule security - jaas
 
Fetch records from mysql using mule esb
Fetch records from mysql using mule esbFetch records from mysql using mule esb
Fetch records from mysql using mule esb
 
Mule ESB Tutorial Part 3
Mule ESB Tutorial Part 3Mule ESB Tutorial Part 3
Mule ESB Tutorial Part 3
 
Mule esb 3.8
Mule esb 3.8Mule esb 3.8
Mule esb 3.8
 
Mule concepts flows
Mule concepts flowsMule concepts flows
Mule concepts flows
 
Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts components
 
Mule message
Mule messageMule message
Mule message
 
MuleSoft CloudHub FAQ
MuleSoft CloudHub FAQMuleSoft CloudHub FAQ
MuleSoft CloudHub FAQ
 
Future of Integration | MuleSoft
Future of Integration | MuleSoftFuture of Integration | MuleSoft
Future of Integration | MuleSoft
 
Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1
 
Mule ESB Fundamentals
Mule ESB FundamentalsMule ESB Fundamentals
Mule ESB Fundamentals
 
Mule ESB - Integration Simplified
Mule ESB - Integration SimplifiedMule ESB - Integration Simplified
Mule ESB - Integration Simplified
 
Application Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoftApplication Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoft
 

Similar to Webservice vm in mule

WebService with vm
WebService with vmWebService with vm
WebService with vmjaveed_mhd
 
Webservice with vm
Webservice with vm Webservice with vm
Webservice with vm mdfkhan625
 
Simple web service vm
Simple web service vmSimple web service vm
Simple web service vmHasan Syed
 
Simple webservice with vm
Simple webservice with vmSimple webservice with vm
Simple webservice with vmF K
 
A simple webservice with vm
A simple webservice with vm A simple webservice with vm
A simple webservice with vm Khasim Saheb
 
Simple web service vm
Simple web service vmSimple web service vm
Simple web service vmMohammed246
 
Simple web service vm
Simple web service vmSimple web service vm
Simple web service vmKhan625
 
Mulesoft vm transport reference
Mulesoft vm transport referenceMulesoft vm transport reference
Mulesoft vm transport referencekumar gaurav
 
Mule execution units
Mule execution unitsMule execution units
Mule execution unitskiranvanga
 
Restservice with active mq
Restservice with active mq Restservice with active mq
Restservice with active mq javeed_mhd
 
Using mule with web services
Using mule with web servicesUsing mule with web services
Using mule with web servicesShanky Gupta
 
What is Mule ESB
What is Mule ESB What is Mule ESB
What is Mule ESB Nam Le Dinh
 
About Mule execution units
About Mule execution unitsAbout Mule execution units
About Mule execution unitsprudhvivreddy
 
Mule esb
Mule esbMule esb
Mule esbPhaniu
 

Similar to Webservice vm in mule (20)

WebService with vm
WebService with vmWebService with vm
WebService with vm
 
Webservice with vm
Webservice with vm Webservice with vm
Webservice with vm
 
Simple web service vm
Simple web service vmSimple web service vm
Simple web service vm
 
Simple web service vm
Simple web service vmSimple web service vm
Simple web service vm
 
Simple webservice with vm
Simple webservice with vmSimple webservice with vm
Simple webservice with vm
 
A simple webservice with vm
A simple webservice with vm A simple webservice with vm
A simple webservice with vm
 
Simple web service vm
Simple web service vmSimple web service vm
Simple web service vm
 
WebService with VM
WebService with VMWebService with VM
WebService with VM
 
Simple web service vm
Simple web service vmSimple web service vm
Simple web service vm
 
web service with vm
web service with vmweb service with vm
web service with vm
 
Mulesoft vm transport reference
Mulesoft vm transport referenceMulesoft vm transport reference
Mulesoft vm transport reference
 
Mule execution units
Mule execution unitsMule execution units
Mule execution units
 
Restservice with active mq
Restservice with active mq Restservice with active mq
Restservice with active mq
 
Using mule with web services
Using mule with web servicesUsing mule with web services
Using mule with web services
 
What is Mule ESB
What is Mule ESB What is Mule ESB
What is Mule ESB
 
Mule esb
Mule esbMule esb
Mule esb
 
About Mule execution units
About Mule execution unitsAbout Mule execution units
About Mule execution units
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb
Mule esbMule esb
Mule esb
 

More from Shahid Shaik

More from Shahid Shaik (15)

Jenkins2
Jenkins2Jenkins2
Jenkins2
 
Jenkins
JenkinsJenkins
Jenkins
 
Mule Webservices
Mule WebservicesMule Webservices
Mule Webservices
 
SOAP, WSDL and UDDI
SOAP, WSDL and UDDISOAP, WSDL and UDDI
SOAP, WSDL and UDDI
 
Mule webservices in detail
Mule webservices in detailMule webservices in detail
Mule webservices in detail
 
WebServices Basic Introduction
WebServices Basic IntroductionWebServices Basic Introduction
WebServices Basic Introduction
 
Java useful in Mule
Java useful in MuleJava useful in Mule
Java useful in Mule
 
Maven introduction in Mule
Maven introduction in MuleMaven introduction in Mule
Maven introduction in Mule
 
WSDL Services
WSDL ServicesWSDL Services
WSDL Services
 
UDDI Services
UDDI ServicesUDDI Services
UDDI Services
 
SOAP Services
SOAP ServicesSOAP Services
SOAP Services
 
Web service vm in mule
Web service vm in muleWeb service vm in mule
Web service vm in mule
 
Xslt in mule
Xslt in muleXslt in mule
Xslt in mule
 
Testing soapui
Testing soapuiTesting soapui
Testing soapui
 
Java in Mule
Java in MuleJava in Mule
Java in Mule
 

Recently uploaded

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 

Recently uploaded (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 

Webservice 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 …