SlideShare a Scribd company logo
How to use Request Reply Scope
29-05-2015
Abstract
• The main motto of this PPT is How to use
Request Reply Scope in our applications.
Introduction
• The Request-Reply scope enables you to embed
a "pocket" of asynchronous processing within a
Mule flow. This functionality enables you to
receive a response from an asynchronous flow
without hardcoding the destination of the
response. For example, you can use request-reply
to convert a one-way VM or JMS flow to
a request-response flow without having to
change it’s configuration. In other words, the
request-reply converts part of a synchronous
process into an asynchronous one.
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"
• 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">
• <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8097" doc:name="HTTP Listener Configuration"/>
• <flow name="RequestReplyFlow">
• <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
• <set-payload doc:name="Set Payload" value="Request"/>
• <request-reply doc:name="Request-Reply">
• <vm:outbound-endpoint exchange-pattern="one-way" path="req" doc:name="VM"/>
• <vm:inbound-endpoint exchange-pattern="one-way" path="res" doc:name="VM"/>
• </request-reply>
• <logger message="--Final Payload is #[payload]--" level="INFO" doc:name="Logger"/>
• </flow>
• <flow name="RequestReplyFlow1">
• <vm:inbound-endpoint exchange-pattern="one-way" path="req" doc:name="VM"/>
• <logger message="--request flow--#[payload]--" level="INFO" doc:name="Logger"/>
• <set-payload doc:name="Set Payload" value="#[payload]_Reply"/>
• <logger message="--2--#[payload]--" level="INFO" doc:name="Logger"/>
• <vm:outbound-endpoint exchange-pattern="one-way" path="res" doc:name="VM"/>
• </flow>
• </mule>
• Output:
• INFO 2016-05-29 07:15:37,972 [[RequestReply].HTTP_Listener_Configuration.worker.01] org.mule.lifecycle.AbstractLifecycleManager: Initialising:
'connector.VM.mule.default.dispatcher.1445751667'. Object is: VMMessageDispatcher
• INFO 2016-05-29 07:15:37,973 [[RequestReply].HTTP_Listener_Configuration.worker.01] org.mule.lifecycle.AbstractLifecycleManager: Starting:
'connector.VM.mule.default.dispatcher.1445751667'. Object is: VMMessageDispatcher
• INFO 2016-05-29 07:15:38,006 [[RequestReply].RequestReplyFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: --request flow--
Request--
• INFO 2016-05-29 07:15:38,008 [[RequestReply].RequestReplyFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: --2--
Request_Reply--
• INFO 2016-05-29 07:15:38,014 [[RequestReply].RequestReplyFlow1.stage1.02] org.mule.transport.DefaultReplyToHandler: reply to sent:
DefaultOutboundEndpoint{endpointUri=vm://res?connector=connector.VM.mule.default, connector=VMConnector
• {
• name=connector.VM.mule.default
• lifecycle=start
• this=705c6b57
• numberOfConcurrentTransactedReceivers=4
• createMultipleTransactedReceivers=true
• connected=true
• supportedProtocols=[vm]
• serviceOverrides=<none>
• }
• , name='endpoint.vm.res', mep=ONE_WAY, properties={connector=connector.VM.mule.default}, transactionConfig=Transaction{factory=null,
action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8,
disableTransportTransformer=false}
• INFO 2016-05-29 07:15:38,015 [[RequestReply].connector.VM.mule.default.dispatcher.01] org.mule.lifecycle.AbstractLifecycleManager: Initialising:
'connector.VM.mule.default.dispatcher.408742592'. Object is: VMMessageDispatcher
• INFO 2016-05-29 07:15:38,015 [[RequestReply].connector.VM.mule.default.dispatcher.01] org.mule.lifecycle.AbstractLifecycleManager: Starting:
'connector.VM.mule.default.dispatcher.408742592'. Object is: VMMessageDispatcher
• INFO 2016-05-29 07:15:38,016 [[RequestReply].connector.VM.mule.default.dispatcher.02] org.mule.lifecycle.AbstractLifecycleManager: Initialising:
'connector.VM.mule.default.dispatcher.1982112397'. Object is: VMMessageDispatcher
• INFO 2016-05-29 07:15:38,016 [[RequestReply].connector.VM.mule.default.dispatcher.02] org.mule.lifecycle.AbstractLifecycleManager: Starting:
'connector.VM.mule.default.dispatcher.1982112397'. Object is: VMMessageDispatcher
• INFO 2016-05-29 07:15:38,022 [[RequestReply].HTTP_Listener_Configuration.worker.01] org.mule.api.processor.LoggerMessageProcessor: --Final
Payload is Request_Reply--
• Flow of execution:
1. URL to trigger the service from browser
http://localhost:8097
2. A. Flow1 will trigger flow2 with the VM in
Request block of Request_Reply scope and with
the payload as “Request”.
B. Flow2 sets the payload as “Request_Reply”
and calls the VM in Reply block of
Request_Reply scope in flow1 and at the end
POC displays the final payload in console and
also returns the same to Browser.
References
• https://docs.mulesoft.com/mule-user-
guide/v/3.6/request-reply-scope

More Related Content

What's hot (18)

PPTX
Mule quartz hari_gatadi
Hari Gatadi
 
PPT
Maven introduction in Mule
Shahid Shaik
 
PPTX
Basic example using choice component
prudhvivreddy
 
PPTX
Vm component in mule
javeed_mhd
 
PPTX
Filter expression in mule demo
Sudha Ch
 
PPTX
Mule with stored procedure
mdfkhan625
 
PPTX
Compress and decompress
Son Nguyen
 
PPT
Mule security - spring security manager
D.Rajesh Kumar
 
PPTX
Timer Interceptor in Mule part 2
Anirban Sen Chowdhary
 
PPTX
How to use until successful component
maheshtheapex
 
PPTX
Mule message processor or routers
sathyaraj Anand
 
PPTX
How to use splitter component
RaviRajuRamaKrishna
 
PPTX
Until Successful Component
Durga Prasad Kakarla
 
PPT
Simple VM in Mule
Christian Hipolito
 
PPTX
Junit in mule demo
javeed_mhd
 
PPTX
Basic example using database component
prudhvivreddy
 
PPTX
Groovy example in mule
Mohammed246
 
PPTX
Mule xml java
VirtusaPolaris
 
Mule quartz hari_gatadi
Hari Gatadi
 
Maven introduction in Mule
Shahid Shaik
 
Basic example using choice component
prudhvivreddy
 
Vm component in mule
javeed_mhd
 
Filter expression in mule demo
Sudha Ch
 
Mule with stored procedure
mdfkhan625
 
Compress and decompress
Son Nguyen
 
Mule security - spring security manager
D.Rajesh Kumar
 
Timer Interceptor in Mule part 2
Anirban Sen Chowdhary
 
How to use until successful component
maheshtheapex
 
Mule message processor or routers
sathyaraj Anand
 
How to use splitter component
RaviRajuRamaKrishna
 
Until Successful Component
Durga Prasad Kakarla
 
Simple VM in Mule
Christian Hipolito
 
Junit in mule demo
javeed_mhd
 
Basic example using database component
prudhvivreddy
 
Groovy example in mule
Mohammed246
 
Mule xml java
VirtusaPolaris
 

Viewers also liked (20)

DOCX
Mumtaz Mehmood CV
Mumtaz Mehmood
 
PDF
Ankur (Bestseller Marathi Poetry) Dr. Shriiwas Kashalikar
ahoskeri
 
PDF
abbreviations in merchant seamen's records
shahin tavakoli
 
PPTX
Rest Component
sivachandra mandalapu
 
PDF
H2S awareness Mulholland
Peter Mulholland
 
PDF
Сантехника Incea – Сделано в Италии от Stockist Italy – информация на 07 мая ...
P.L.T. Forniture Industriali S.r.l.
 
PPTX
Disciplina Marketing e Turismo (IFSP Campus Cubatao) (aula 04)
Aristides Faria
 
PDF
hazardous locations
shahin tavakoli
 
PDF
Maulan muhammad umar ichravi ki ilmi khidmat by hamda shahid
Muhammad Tariq
 
PPTX
How to use jms inbound endpoint
sivachandra mandalapu
 
PPSX
The summary of my beloved Prophet Hazrat Muhammad ﷺ.
NURVSoft
 
PPTX
WaveCrest Inc Profile 4May2016new
Gary Willmore
 
DOCX
Laudo resistencia aterramento suzano
Jorge Martins de Oliveira
 
PPTX
Property place holder
sivachandra mandalapu
 
PPTX
Reference exception strategy
sivachandra mandalapu
 
PPTX
Deployment options for mule applications
sivachandra mandalapu
 
PDF
Lessons From Sharding Solr At Etsy: Presented by Gregg Donovan, Etsy
Lucidworks
 
Mumtaz Mehmood CV
Mumtaz Mehmood
 
Ankur (Bestseller Marathi Poetry) Dr. Shriiwas Kashalikar
ahoskeri
 
abbreviations in merchant seamen's records
shahin tavakoli
 
Rest Component
sivachandra mandalapu
 
H2S awareness Mulholland
Peter Mulholland
 
Сантехника Incea – Сделано в Италии от Stockist Italy – информация на 07 мая ...
P.L.T. Forniture Industriali S.r.l.
 
Disciplina Marketing e Turismo (IFSP Campus Cubatao) (aula 04)
Aristides Faria
 
hazardous locations
shahin tavakoli
 
Maulan muhammad umar ichravi ki ilmi khidmat by hamda shahid
Muhammad Tariq
 
How to use jms inbound endpoint
sivachandra mandalapu
 
The summary of my beloved Prophet Hazrat Muhammad ﷺ.
NURVSoft
 
WaveCrest Inc Profile 4May2016new
Gary Willmore
 
Laudo resistencia aterramento suzano
Jorge Martins de Oliveira
 
Property place holder
sivachandra mandalapu
 
Reference exception strategy
sivachandra mandalapu
 
Deployment options for mule applications
sivachandra mandalapu
 
Lessons From Sharding Solr At Etsy: Presented by Gregg Donovan, Etsy
Lucidworks
 
Ad

Similar to How to use Request Reply scope (20)

PPTX
Mule scopes request_response_scope
kunal vishe
 
PPTX
Mule Request Reply
Ram Bavireddi
 
PPTX
Vm component in mule demo
Sudha Ch
 
PPTX
Vm Component
Durga Prasad Kakarla
 
PPTX
Vm component
Sunil Komarapu
 
PPTX
Vm component
F K
 
PPTX
How to use vm component
maheshtheapex
 
PPTX
How to use poll scope
sivachandra mandalapu
 
PPTX
Mule messages
Padmanabhan Natarajan, CSM
 
PPTX
Mule message
Son Nguyen
 
ODP
Mule scopes&amp;error handling
Sumit Gole
 
PPT
Rest service in mule
Harish43
 
PPT
Rest Service In Mule
ChittipoluKeshav
 
PPTX
Mule requestor component
Sindhu VL
 
PPTX
Mule esb mule message
sathyaraj Anand
 
PPTX
Mule requesterdemo
Anirban Sen Chowdhary
 
PPTX
For each component in mule demo
Sudha Ch
 
PPTX
Mule integration
Son Nguyen
 
PDF
Mule ESB
Yura Nosenko
 
PPTX
How to use processor chain
sivachandra mandalapu
 
Mule scopes request_response_scope
kunal vishe
 
Mule Request Reply
Ram Bavireddi
 
Vm component in mule demo
Sudha Ch
 
Vm Component
Durga Prasad Kakarla
 
Vm component
Sunil Komarapu
 
Vm component
F K
 
How to use vm component
maheshtheapex
 
How to use poll scope
sivachandra mandalapu
 
Mule message
Son Nguyen
 
Mule scopes&amp;error handling
Sumit Gole
 
Rest service in mule
Harish43
 
Rest Service In Mule
ChittipoluKeshav
 
Mule requestor component
Sindhu VL
 
Mule esb mule message
sathyaraj Anand
 
Mule requesterdemo
Anirban Sen Chowdhary
 
For each component in mule demo
Sudha Ch
 
Mule integration
Son Nguyen
 
Mule ESB
Yura Nosenko
 
How to use processor chain
sivachandra mandalapu
 
Ad

More from sivachandra mandalapu (20)

PPTX
Mock component in munit
sivachandra mandalapu
 
PPTX
Jms selector
sivachandra mandalapu
 
PPTX
Sftplite
sivachandra mandalapu
 
PPTX
Object store
sivachandra mandalapu
 
PPTX
How to use SFTP
sivachandra mandalapu
 
PPTX
How to use secure property placeholder
sivachandra mandalapu
 
PPTX
Specifying a default exception strategy
sivachandra mandalapu
 
PPTX
Defining global exception strategies
sivachandra mandalapu
 
PPTX
Validate json schema
sivachandra mandalapu
 
PPTX
Validation
sivachandra mandalapu
 
PPTX
Collection aggregator
sivachandra mandalapu
 
PPTX
Cloud hub deployment
sivachandra mandalapu
 
PPTX
Securing api with_o_auth2
sivachandra mandalapu
 
PPTX
Setting up organization with api access
sivachandra mandalapu
 
PPTX
API gateway setup
sivachandra mandalapu
 
PPTX
Splitter
sivachandra mandalapu
 
PPTX
Expression
sivachandra mandalapu
 
PPTX
Bean as Datasource
sivachandra mandalapu
 
PPTX
Synchronous communication using jms back channel
sivachandra mandalapu
 
Mock component in munit
sivachandra mandalapu
 
Jms selector
sivachandra mandalapu
 
Object store
sivachandra mandalapu
 
How to use SFTP
sivachandra mandalapu
 
How to use secure property placeholder
sivachandra mandalapu
 
Specifying a default exception strategy
sivachandra mandalapu
 
Defining global exception strategies
sivachandra mandalapu
 
Validate json schema
sivachandra mandalapu
 
Collection aggregator
sivachandra mandalapu
 
Cloud hub deployment
sivachandra mandalapu
 
Securing api with_o_auth2
sivachandra mandalapu
 
Setting up organization with api access
sivachandra mandalapu
 
API gateway setup
sivachandra mandalapu
 
Bean as Datasource
sivachandra mandalapu
 
Synchronous communication using jms back channel
sivachandra mandalapu
 

Recently uploaded (20)

PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
SD_GMRC5_Session 6AB_Dulog Pedagohikal at Pagtataya (1).pptx
NickeyArguelles
 
PDF
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
Council of Chalcedon Re-Examined
Smiling Lungs
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PDF
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
SD_GMRC5_Session 6AB_Dulog Pedagohikal at Pagtataya (1).pptx
NickeyArguelles
 
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Council of Chalcedon Re-Examined
Smiling Lungs
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
Introduction to Indian Writing in English
Trushali Dodiya
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 

How to use Request Reply scope

  • 1. How to use Request Reply Scope 29-05-2015
  • 2. Abstract • The main motto of this PPT is How to use Request Reply Scope in our applications.
  • 3. Introduction • The Request-Reply scope enables you to embed a "pocket" of asynchronous processing within a Mule flow. This functionality enables you to receive a response from an asynchronous flow without hardcoding the destination of the response. For example, you can use request-reply to convert a one-way VM or JMS flow to a request-response flow without having to change it’s configuration. In other words, the request-reply converts part of a synchronous process into an asynchronous one.
  • 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" • 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"> • <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8097" doc:name="HTTP Listener Configuration"/> • <flow name="RequestReplyFlow"> • <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/> • <set-payload doc:name="Set Payload" value="Request"/> • <request-reply doc:name="Request-Reply"> • <vm:outbound-endpoint exchange-pattern="one-way" path="req" doc:name="VM"/> • <vm:inbound-endpoint exchange-pattern="one-way" path="res" doc:name="VM"/> • </request-reply> • <logger message="--Final Payload is #[payload]--" level="INFO" doc:name="Logger"/> • </flow> • <flow name="RequestReplyFlow1"> • <vm:inbound-endpoint exchange-pattern="one-way" path="req" doc:name="VM"/> • <logger message="--request flow--#[payload]--" level="INFO" doc:name="Logger"/> • <set-payload doc:name="Set Payload" value="#[payload]_Reply"/> • <logger message="--2--#[payload]--" level="INFO" doc:name="Logger"/> • <vm:outbound-endpoint exchange-pattern="one-way" path="res" doc:name="VM"/> • </flow> • </mule>
  • 6. • Output: • INFO 2016-05-29 07:15:37,972 [[RequestReply].HTTP_Listener_Configuration.worker.01] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.VM.mule.default.dispatcher.1445751667'. Object is: VMMessageDispatcher • INFO 2016-05-29 07:15:37,973 [[RequestReply].HTTP_Listener_Configuration.worker.01] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.VM.mule.default.dispatcher.1445751667'. Object is: VMMessageDispatcher • INFO 2016-05-29 07:15:38,006 [[RequestReply].RequestReplyFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: --request flow-- Request-- • INFO 2016-05-29 07:15:38,008 [[RequestReply].RequestReplyFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: --2-- Request_Reply-- • INFO 2016-05-29 07:15:38,014 [[RequestReply].RequestReplyFlow1.stage1.02] org.mule.transport.DefaultReplyToHandler: reply to sent: DefaultOutboundEndpoint{endpointUri=vm://res?connector=connector.VM.mule.default, connector=VMConnector • { • name=connector.VM.mule.default • lifecycle=start • this=705c6b57 • numberOfConcurrentTransactedReceivers=4 • createMultipleTransactedReceivers=true • connected=true • supportedProtocols=[vm] • serviceOverrides=<none> • } • , name='endpoint.vm.res', mep=ONE_WAY, properties={connector=connector.VM.mule.default}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=false} • INFO 2016-05-29 07:15:38,015 [[RequestReply].connector.VM.mule.default.dispatcher.01] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.VM.mule.default.dispatcher.408742592'. Object is: VMMessageDispatcher • INFO 2016-05-29 07:15:38,015 [[RequestReply].connector.VM.mule.default.dispatcher.01] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.VM.mule.default.dispatcher.408742592'. Object is: VMMessageDispatcher • INFO 2016-05-29 07:15:38,016 [[RequestReply].connector.VM.mule.default.dispatcher.02] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.VM.mule.default.dispatcher.1982112397'. Object is: VMMessageDispatcher • INFO 2016-05-29 07:15:38,016 [[RequestReply].connector.VM.mule.default.dispatcher.02] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.VM.mule.default.dispatcher.1982112397'. Object is: VMMessageDispatcher • INFO 2016-05-29 07:15:38,022 [[RequestReply].HTTP_Listener_Configuration.worker.01] org.mule.api.processor.LoggerMessageProcessor: --Final Payload is Request_Reply--
  • 7. • Flow of execution: 1. URL to trigger the service from browser http://localhost:8097 2. A. Flow1 will trigger flow2 with the VM in Request block of Request_Reply scope and with the payload as “Request”. B. Flow2 sets the payload as “Request_Reply” and calls the VM in Reply block of Request_Reply scope in flow1 and at the end POC displays the final payload in console and also returns the same to Browser.