SlideShare a Scribd company logo
1 of 10
VM TRANSPORT
VM Transport is based on in-memory Queues
available within Mule JVM. These can also be
persisted to Files should we require more
reliable storage. These are just like JMS
Queues
• The in memory (VM) transport has two modes of
operation: One for use with request-response and another
for use with one-way endpoints.
• request-response:
• When using request-response endpoints, messages are
delivered directly from an outbound vm endpoint to the
inbound vm endpoint that is listening on the same path.
This delivery is blocking and occurs in the same thread.
• one-way:
• When using one-way endpoints, messages are delivered
to the corresponding inbound endpoint via a queue. This
delivery is non-blocking.
• Asynchronous communication is desired but external
message broker (such as Active MQ) can’t be used. This
can be for for performance or non-availability reasons.
• Create VM endpoints.
• Messages will be received on inbound endpoints.
• Messages will be sent to outbound endpoints.
• Both kinds of endpoints are identified by a path name or
address.
Lets create an example to understand how VM transport works.
• Create a HTTP inbound endpoint with port as “8081” and
path as “vm”. Then drag and drop a VM endpoint next to
HTTP. Select “request-response” as exchange pattern.
Also, specify “VM1” as Queue Path.
• Drag and drop another VM endpoint below
vmdemoFlow1. Mule Studio automatically creates another
flow named vmFlow2. Select “request-response” as
exchange pattern. Also, specify “VM1” as Queue Path.
This ensures messages passed from vmFlow1 are read in
vmdemoFlow1 since Queue paths are same.
vmdemoflow
Http configuration
Set Payload configuration
XML code
• <?xml version="1.0" encoding="UTF-8"?>
• <mule xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
• xmlns:spring="http://www.springframework.org/schema/beans"
• xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
• xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-current.xsd
• http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
• http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
• http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd">
• <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP
Listener Configuration"/>
• <flow name="vmdemoFlow">
• <http:listener config-ref="HTTP_Listener_Configuration" path="vm" doc:name="HTTP"/>
• <set-payload value="Hello" doc:name="Set Payload"/>
• <vm:outbound-endpoint exchange-pattern="request-response" path="VM1" doc:name="VM"/>
• </flow>
• <flow name="vmdemoFlow1">
• <vm:inbound-endpoint exchange-pattern="request-response" path="VM1" doc:name="VM"/>
• <set-payload value="#[message.payload]......MULE" doc:name="Set Payload"/>
• <logger message="#[message.payload]" level="INFO" doc:name="Logger"/>
• </flow>
• </mule>
Output:Using the url
http://localhost:8081/vm
Http://localhost:8081/vm
• If it is a one-way communication
• We can get the following output
“Hello” only

More Related Content

What's hot

What's hot (18)

M messaging 2
M messaging 2M messaging 2
M messaging 2
 
Muleflowarchitecturepart2
Muleflowarchitecturepart2Muleflowarchitecturepart2
Muleflowarchitecturepart2
 
Mule jms queues
Mule jms queuesMule jms queues
Mule jms queues
 
Mule java part-1
Mule java part-1Mule java part-1
Mule java part-1
 
Mule esb introduction
Mule esb introductionMule esb introduction
Mule esb introduction
 
Mule jms
Mule   jmsMule   jms
Mule jms
 
Muletransformers
MuletransformersMuletransformers
Muletransformers
 
Mule threading profile & processing strategy
Mule threading profile & processing strategyMule threading profile & processing strategy
Mule threading profile & processing strategy
 
Mule Message Properties Component
Mule Message Properties ComponentMule Message Properties Component
Mule Message Properties Component
 
Vm example
Vm exampleVm example
Vm example
 
Anypoint mq queues and exchanges
Anypoint mq queues and exchangesAnypoint mq queues and exchanges
Anypoint mq queues and exchanges
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mule
 
Mule compatible technologies
Mule compatible technologiesMule compatible technologies
Mule compatible technologies
 
Mule Requester Usage Demo
Mule Requester Usage DemoMule Requester Usage Demo
Mule Requester Usage Demo
 
Mule overview
Mule overviewMule overview
Mule overview
 
Basic example using vm component
Basic example using vm componentBasic example using vm component
Basic example using vm component
 
Basic example using until successful component
Basic example using until successful componentBasic example using until successful component
Basic example using until successful component
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
 

Viewers also liked

English (Compound and Complex Sentence)
English (Compound and Complex Sentence)English (Compound and Complex Sentence)
English (Compound and Complex Sentence)
Fitri Amalia
 

Viewers also liked (16)

Indivicual factors Eng Assignment
 Indivicual factors Eng Assignment Indivicual factors Eng Assignment
Indivicual factors Eng Assignment
 
Kritik Islam Terhadap UUD 1945
Kritik Islam Terhadap UUD 1945Kritik Islam Terhadap UUD 1945
Kritik Islam Terhadap UUD 1945
 
Paraprotex
ParaprotexParaprotex
Paraprotex
 
English (Compound and Complex Sentence)
English (Compound and Complex Sentence)English (Compound and Complex Sentence)
English (Compound and Complex Sentence)
 
Tea tree oil test
Tea tree oil testTea tree oil test
Tea tree oil test
 
CaliVita Knowledgebase romanian version
CaliVita Knowledgebase romanian versionCaliVita Knowledgebase romanian version
CaliVita Knowledgebase romanian version
 
Low deuterium oxy crystal stabilizovani kiseonik
Low deuterium oxy crystal stabilizovani kiseonikLow deuterium oxy crystal stabilizovani kiseonik
Low deuterium oxy crystal stabilizovani kiseonik
 
комерціалізація інновацій 101
комерціалізація інновацій 101комерціалізація інновацій 101
комерціалізація інновацій 101
 
Bottled water
Bottled waterBottled water
Bottled water
 
Hariharan, the one arm wonder boy
Hariharan, the one arm wonder boyHariharan, the one arm wonder boy
Hariharan, the one arm wonder boy
 
C1000 plus
C1000 plusC1000 plus
C1000 plus
 
O manual de instrução de deus para o casamento
O manual de instrução de deus para o casamentoO manual de instrução de deus para o casamento
O manual de instrução de deus para o casamento
 
Ilocos sur
Ilocos surIlocos sur
Ilocos sur
 
The 5 Biggest Enterprise Architecture challenges solved with real-time metric...
The 5 Biggest Enterprise Architecture challenges solved with real-time metric...The 5 Biggest Enterprise Architecture challenges solved with real-time metric...
The 5 Biggest Enterprise Architecture challenges solved with real-time metric...
 
Complex sentence
Complex sentenceComplex sentence
Complex sentence
 
LeanIX Swagger REST API @ Open Source Konferenz FrosCon, Sankt Augustin
LeanIX Swagger REST API @ Open Source Konferenz FrosCon, Sankt AugustinLeanIX Swagger REST API @ Open Source Konferenz FrosCon, Sankt Augustin
LeanIX Swagger REST API @ Open Source Konferenz FrosCon, Sankt Augustin
 

Similar to Vm transport

Enterprise Messaging With ActiveMQ and Spring JMS
Enterprise Messaging With ActiveMQ and Spring JMSEnterprise Messaging With ActiveMQ and Spring JMS
Enterprise Messaging With ActiveMQ and Spring JMS
Bruce Snyder
 

Similar to Vm transport (20)

Vm component
Vm componentVm component
Vm component
 
Vm component
Vm componentVm component
Vm component
 
Vm component in mule demo
Vm component in mule demoVm component in mule demo
Vm component in mule demo
 
Mule requester
Mule requesterMule requester
Mule requester
 
Mule esb and_relevant_components
Mule esb and_relevant_componentsMule esb and_relevant_components
Mule esb and_relevant_components
 
Red Hat Open Day JBoss Fuse
Red Hat Open Day JBoss FuseRed Hat Open Day JBoss Fuse
Red Hat Open Day JBoss Fuse
 
An introduction to Apache Camel
An introduction to Apache CamelAn introduction to Apache Camel
An introduction to Apache Camel
 
ESB Online Training Part 2
ESB Online Training Part 2ESB Online Training Part 2
ESB Online Training Part 2
 
Mule any point studio
Mule any point studioMule any point studio
Mule any point studio
 
An Introduction to AMQP with Code Samples
An Introduction to AMQP with Code SamplesAn Introduction to AMQP with Code Samples
An Introduction to AMQP with Code Samples
 
Cetpa dotnet taining
Cetpa dotnet tainingCetpa dotnet taining
Cetpa dotnet taining
 
1480-techintrotoiib-150224130001-conversion-gate01.pptx
1480-techintrotoiib-150224130001-conversion-gate01.pptx1480-techintrotoiib-150224130001-conversion-gate01.pptx
1480-techintrotoiib-150224130001-conversion-gate01.pptx
 
MuleSoft ESB XML to CSV
MuleSoft ESB XML to CSVMuleSoft ESB XML to CSV
MuleSoft ESB XML to CSV
 
MuleSoft ESB CSV to XML
MuleSoft ESB CSV to XMLMuleSoft ESB CSV to XML
MuleSoft ESB CSV to XML
 
Connecting Applications Everywhere with ActiveMQ
Connecting Applications Everywhere with ActiveMQConnecting Applications Everywhere with ActiveMQ
Connecting Applications Everywhere with ActiveMQ
 
Jms queues
Jms queuesJms queues
Jms queues
 
WebSphere MQ introduction
WebSphere MQ introductionWebSphere MQ introduction
WebSphere MQ introduction
 
Enterprise Messaging With ActiveMQ and Spring JMS
Enterprise Messaging With ActiveMQ and Spring JMSEnterprise Messaging With ActiveMQ and Spring JMS
Enterprise Messaging With ActiveMQ and Spring JMS
 
Messaging with RabbitMQ and AMQP
Messaging with RabbitMQ and AMQPMessaging with RabbitMQ and AMQP
Messaging with RabbitMQ and AMQP
 
Mule Request Reply
Mule Request ReplyMule Request Reply
Mule Request Reply
 

More from Ramakrishna kapa

More from Ramakrishna kapa (20)

Load balancer in mule
Load balancer in muleLoad balancer in mule
Load balancer in mule
 
Anypoint connectors
Anypoint connectorsAnypoint connectors
Anypoint connectors
 
Batch processing
Batch processingBatch processing
Batch processing
 
Msmq connectivity
Msmq connectivityMsmq connectivity
Msmq connectivity
 
Scopes in mule
Scopes in muleScopes in mule
Scopes in mule
 
Data weave more operations
Data weave more operationsData weave more operations
Data weave more operations
 
Basic math operations using dataweave
Basic math operations using dataweaveBasic math operations using dataweave
Basic math operations using dataweave
 
Dataweave types operators
Dataweave types operatorsDataweave types operators
Dataweave types operators
 
Operators in mule dataweave
Operators in mule dataweaveOperators in mule dataweave
Operators in mule dataweave
 
Data weave in mule
Data weave in muleData weave in mule
Data weave in mule
 
Servicenow connector
Servicenow connectorServicenow connector
Servicenow connector
 
Introduction to testing mule
Introduction to testing muleIntroduction to testing mule
Introduction to testing mule
 
Choice flow control
Choice flow controlChoice flow control
Choice flow control
 
Message enricher example
Message enricher exampleMessage enricher example
Message enricher example
 
Mule exception strategies
Mule exception strategiesMule exception strategies
Mule exception strategies
 
Anypoint connector basics
Anypoint connector basicsAnypoint connector basics
Anypoint connector basics
 
Mule global elements
Mule global elementsMule global elements
Mule global elements
 
Mule message structure and varibles scopes
Mule message structure and varibles scopesMule message structure and varibles scopes
Mule message structure and varibles scopes
 
How to create an api in mule
How to create an api in muleHow to create an api in mule
How to create an api in mule
 
Log4j is a reliable, fast and flexible
Log4j is a reliable, fast and flexibleLog4j is a reliable, fast and flexible
Log4j is a reliable, fast and flexible
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Vm transport

  • 1. VM TRANSPORT VM Transport is based on in-memory Queues available within Mule JVM. These can also be persisted to Files should we require more reliable storage. These are just like JMS Queues
  • 2. • The in memory (VM) transport has two modes of operation: One for use with request-response and another for use with one-way endpoints. • request-response: • When using request-response endpoints, messages are delivered directly from an outbound vm endpoint to the inbound vm endpoint that is listening on the same path. This delivery is blocking and occurs in the same thread. • one-way: • When using one-way endpoints, messages are delivered to the corresponding inbound endpoint via a queue. This delivery is non-blocking.
  • 3. • Asynchronous communication is desired but external message broker (such as Active MQ) can’t be used. This can be for for performance or non-availability reasons. • Create VM endpoints. • Messages will be received on inbound endpoints. • Messages will be sent to outbound endpoints. • Both kinds of endpoints are identified by a path name or address.
  • 4. Lets create an example to understand how VM transport works. • Create a HTTP inbound endpoint with port as “8081” and path as “vm”. Then drag and drop a VM endpoint next to HTTP. Select “request-response” as exchange pattern. Also, specify “VM1” as Queue Path. • Drag and drop another VM endpoint below vmdemoFlow1. Mule Studio automatically creates another flow named vmFlow2. Select “request-response” as exchange pattern. Also, specify “VM1” as Queue Path. This ensures messages passed from vmFlow1 are read in vmdemoFlow1 since Queue paths are same.
  • 8. XML code • <?xml version="1.0" encoding="UTF-8"?> • <mule xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" • xmlns:spring="http://www.springframework.org/schema/beans" • xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" • xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd • http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd • http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd • http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd"> • <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/> • <flow name="vmdemoFlow"> • <http:listener config-ref="HTTP_Listener_Configuration" path="vm" doc:name="HTTP"/> • <set-payload value="Hello" doc:name="Set Payload"/> • <vm:outbound-endpoint exchange-pattern="request-response" path="VM1" doc:name="VM"/> • </flow> • <flow name="vmdemoFlow1"> • <vm:inbound-endpoint exchange-pattern="request-response" path="VM1" doc:name="VM"/> • <set-payload value="#[message.payload]......MULE" doc:name="Set Payload"/> • <logger message="#[message.payload]" level="INFO" doc:name="Logger"/> • </flow> • </mule>
  • 10. Http://localhost:8081/vm • If it is a one-way communication • We can get the following output “Hello” only