SlideShare a Scribd company logo
How to use VM component
15-09-2014
Abstract
• The main motto of this PPT is how to use VM
component in our applications.
Introduction
• You can use the Java Virtual Machine (VM)
transport for intra-JVM communication
between Mule flows. This transport by default
uses in-memory queues but can optionally be
configured to use persistent queues..
Example
• hello world example
• .mflow
• <?xml version="1.0" encoding="UTF-8"?>
• <mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" 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" version="EE-3.4.0"
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/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
• http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
• <flow name="VMFlow1" doc:name="VMFlow1">
• <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8087" path="VM"
doc:name="HTTP"/>
• <logger message="--Main flow triggered " level="INFO" doc:name="Logger"/>
• <vm:outbound-endpoint exchange-pattern="request-response" path="subflow" doc:name="VM"/>
• </flow>
• <flow name="VMFlow2" doc:name="VMFlow2">
• <vm:inbound-endpoint exchange-pattern="request-response" path="subflow" doc:name="VM"/>
• <logger message="--Hello world" level="INFO" doc:name="Logger"/>
• </flow>
• </mule>
• Output:
• Flow of execution:
1. Service will trigger from browser with the
following URL “http://localhost:8087/VM”
2. Service will display a message called ‘’ and
‘Hello world’
Features
• 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. If there is no inbound request-response VM endpoint in the
same Mule application that is listening on this path, then dispatching a
message from the outbound endpoint fails.
• one-way:
• When using one-way endpoints, messages are delivered to the
corresponding inbound endpoint via a queue. This delivery is non-
blocking. If there is no inbound one-wayendpoint in the same Mule
application listening on this path, then, although dispatching of the
message succeeds, the message remains in the queue. By default, this
queue is in memory, but it is also possible to configure a persistent queue
that uses the file system as its persistence mechanism.
References
• https://docs.mulesoft.com/mule-user-
guide/v/3.7/vm-transport-reference#vm-
transport-info

More Related Content

PPTX
Vm Component
PPTX
Vm component in mule
PPT
Simple VM in Mule
PPTX
Vm example
PPTX
Vm transport
PPTX
Choice component in mule demo
PPTX
Introduction to mule esb
PPTX
Basic example using until successful component
Vm Component
Vm component in mule
Simple VM in Mule
Vm example
Vm transport
Choice component in mule demo
Introduction to mule esb
Basic example using until successful component

What's hot (17)

PPTX
PPTX
Mule Message Properties Component
PPTX
Jms queue
PPTX
Mock component in munit
PPTX
Expression filter in Mule
PPTX
How to use until successful component
PPTX
Basic example using vm component
PPTX
Object store
PPTX
Mule: Java Component
PPTX
Message properties component in mule demo
PPTX
Until successful component in mule
PPTX
Introduction java messaging services
PPTX
Basic example using message properties component
PPTX
Using XSLT in Mule
PPTX
Mule esb
PPTX
Until Successful Component
PPTX
Filter expression in mule
Mule Message Properties Component
Jms queue
Mock component in munit
Expression filter in Mule
How to use until successful component
Basic example using vm component
Object store
Mule: Java Component
Message properties component in mule demo
Until successful component in mule
Introduction java messaging services
Basic example using message properties component
Using XSLT in Mule
Mule esb
Until Successful Component
Filter expression in mule
Ad

Similar to How to use vm component (20)

PPTX
Vm component
PPTX
Vm component
 
PPTX
Vm component in mule demo
PPTX
Vmtransport 160723040146
PPTX
How to use processor chain
PPTX
Until successful component
PPTX
Until successful component in mule
 
PPTX
What is the difference between using private flow
PPTX
How to use jms outbound endpoint
PPTX
How to use splitter component
PPTX
How to use splitter component
PPTX
How to use composite source
PPTX
Mule requester
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
Message properties component in Mule
PPTX
Message properties component
 
PPTX
Message properties component
PPTX
Message properties component in mule
Vm component
Vm component
 
Vm component in mule demo
Vmtransport 160723040146
How to use processor chain
Until successful component
Until successful component in mule
 
What is the difference between using private flow
How to use jms outbound endpoint
How to use splitter component
How to use splitter component
How to use composite source
Mule requester
How to use message properties component
How to use message properties component
How to use message properties component
Message properties component in Mule
Message properties component
 
Message properties component
Message properties component in mule
Ad

More from maheshtheapex (6)

PPTX
How to use for each component
PPTX
How to use data mapper transformer
PPTX
How to use choice component
PPTX
How to use message properties component
PPTX
How to use file component
PPTX
How to use quartz component
How to use for each component
How to use data mapper transformer
How to use choice component
How to use message properties component
How to use file component
How to use quartz component

Recently uploaded (20)

PDF
01-Introduction-to-Information-Management.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Presentation on HIE in infants and its manifestations
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Types and Its function , kingdom of life
PDF
RMMM.pdf make it easy to upload and study
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Structure & Organelles in detailed.
PDF
VCE English Exam - Section C Student Revision Booklet
01-Introduction-to-Information-Management.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Presentation on HIE in infants and its manifestations
Computing-Curriculum for Schools in Ghana
Cell Types and Its function , kingdom of life
RMMM.pdf make it easy to upload and study
O5-L3 Freight Transport Ops (International) V1.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
human mycosis Human fungal infections are called human mycosis..pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
GDM (1) (1).pptx small presentation for students
Supply Chain Operations Speaking Notes -ICLT Program
Anesthesia in Laparoscopic Surgery in India
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
Cell Structure & Organelles in detailed.
VCE English Exam - Section C Student Revision Booklet

How to use vm component

  • 1. How to use VM component 15-09-2014
  • 2. Abstract • The main motto of this PPT is how to use VM component in our applications.
  • 3. Introduction • You can use the Java Virtual Machine (VM) transport for intra-JVM communication between Mule flows. This transport by default uses in-memory queues but can optionally be configured to use persistent queues..
  • 5. • .mflow • <?xml version="1.0" encoding="UTF-8"?> • <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:vm="http://www.mulesoft.org/schema/mule/vm" 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" version="EE-3.4.0" 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/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd • http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"> • <flow name="VMFlow1" doc:name="VMFlow1"> • <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8087" path="VM" doc:name="HTTP"/> • <logger message="--Main flow triggered " level="INFO" doc:name="Logger"/> • <vm:outbound-endpoint exchange-pattern="request-response" path="subflow" doc:name="VM"/> • </flow> • <flow name="VMFlow2" doc:name="VMFlow2"> • <vm:inbound-endpoint exchange-pattern="request-response" path="subflow" doc:name="VM"/> • <logger message="--Hello world" level="INFO" doc:name="Logger"/> • </flow> • </mule>
  • 7. • Flow of execution: 1. Service will trigger from browser with the following URL “http://localhost:8087/VM” 2. Service will display a message called ‘’ and ‘Hello world’
  • 8. Features • 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. If there is no inbound request-response VM endpoint in the same Mule application that is listening on this path, then dispatching a message from the outbound endpoint fails. • one-way: • When using one-way endpoints, messages are delivered to the corresponding inbound endpoint via a queue. This delivery is non- blocking. If there is no inbound one-wayendpoint in the same Mule application listening on this path, then, although dispatching of the message succeeds, the message remains in the queue. By default, this queue is in memory, but it is also possible to configure a persistent queue that uses the file system as its persistence mechanism.