SlideShare a Scribd company logo
Message Properties Component In
Mule Demo
Abstract
• The main motto of this PPT is how to use
Message Properties in our applications.
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="MessagePropertiesFlow1" doc:name="MessagePropertiesFlow1">
• <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8089" path="messageproperties" doc:name="HTTP"/>
• <message-properties-transformer scope="session" doc:name="Message Properties">
• <add-message-property key="property1" value="studio"/>
• </message-properties-transformer>
• <message-properties-transformer scope="outbound" doc:name="Message Properties">
• <add-message-property key="property2" value="mule"/>
• </message-properties-transformer>
• <logger message="--flow1--#[message.outboundProperties['property2']]--#[sessionVars['property1']]" level="INFO" doc:name="Logger"/>
• <vm:outbound-endpoint exchange-pattern="request-response" path="messageproperties" doc:name="VM"/>
• </flow>
• <flow name="MessagePropertiesFlow2" doc:name="MessagePropertiesFlow2">
• <vm:inbound-endpoint exchange-pattern="request-response" path="messageproperties" doc:name="VM"/>
• <logger message="---flow2--#[message.inboundProperties['property2']]--#[sessionVars['property1']]" level="INFO" doc:name="Logger"/>
• </flow>
• </mule>
• Output:
• INFO 2015-10-03 16:00:23,705 [[messageproperties].config.change.14.thread.1] org.mule.DefaultMuleContext:
• **********************************************************************
• * Application: messageproperties *
• * OS encoding: Cp1252, Mule encoding: UTF-8 *
• * *
• * Agents Running: *
• * Clustering Agent *
• * JMX Agent *
• **********************************************************************
• INFO 2015-10-03 16:00:23,706 [[messageproperties].config.change.14.thread.1]
org.mule.module.launcher.MuleDeploymentService:
• ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
• + Started app 'messageproperties' +
• ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
• INFO 2015-10-03 16:00:26,480 [[messageproperties].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: --flow1--mule--studio
• INFO 2015-10-03 16:00:26,482 [[messageproperties].connector.http.mule.default.receiver.02]
org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.VM.mule.default.dispatcher.771015974'.
Object is: VMMessageDispatcher
• INFO 2015-10-03 16:00:26,482 [[messageproperties].connector.http.mule.default.receiver.02]
org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.VM.mule.default.dispatcher.771015974'. Object
is: VMMessageDispatcher
• INFO 2015-10-03 16:00:26,489 [[messageproperties].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: ---flow2--mule--studio
• Flow of execution:
1. URL to trigger the service from browser
http://localhost:8089/messageproperties
2. In flow1 both outbound and session property
is created using message property component
3. Service displays both outbound and session
properties in flow1
4. In flow2 the outbound property is changes to
inbound proeprty
5. Flow2 displays both inbound and session
property
References
• http://www.mulesoft.org/documentation-
3.2/display/32X/Message+Property+Scopes

More Related Content

What's hot (13)

PPTX
Basic example using for each component
prudhvivreddy
 
PPTX
Filter expression in mule demo
Sudha Ch
 
PPTX
Message properties component in mule demo
Sudha Ch
 
PPTX
Filter expression in mule
Rajkattamuri
 
PPTX
Quartz component in mule
javeed_mhd
 
PPTX
Choice component in mule demo
Sudha Ch
 
PPTX
Basic example using message properties component
prudhvivreddy
 
PPTX
Expression Filters
Durga Prasad Kakarla
 
PPTX
Message properties component in mule
Khan625
 
PPTX
Expression filter in Mule
Mohammed246
 
PPTX
Soap Component
sivachandra mandalapu
 
PPTX
For each component in mule
Rajkattamuri
 
PPTX
Choice component
Durga Prasad Kakarla
 
Basic example using for each component
prudhvivreddy
 
Filter expression in mule demo
Sudha Ch
 
Message properties component in mule demo
Sudha Ch
 
Filter expression in mule
Rajkattamuri
 
Quartz component in mule
javeed_mhd
 
Choice component in mule demo
Sudha Ch
 
Basic example using message properties component
prudhvivreddy
 
Expression Filters
Durga Prasad Kakarla
 
Message properties component in mule
Khan625
 
Expression filter in Mule
Mohammed246
 
Soap Component
sivachandra mandalapu
 
For each component in mule
Rajkattamuri
 
Choice component
Durga Prasad Kakarla
 

Viewers also liked (13)

PDF
부천건마 동탄건마 《분당오피》 역삼역건마
sfalzgyc6
 
PDF
동탄건마 일산건마 《부천오피》 선릉역건마
sfalzgyc7
 
PDF
동탄건마 청주건마 《목동오피》 동탄건마
sfalzgyc6
 
PDF
수원건마 천안건마 《분당오피》 인천건마
sfalzgyc7
 
PPTX
Human trafficking
johnny_d_92
 
PDF
동탄건마 일산건마 《부평오피》 부평건마
sfalzgyc7
 
PDF
분당건마 안양건마 《서현오피》 역삼역건마
sfalzgyc7
 
DOCX
Podcast Analysis
Solomben
 
PPT
Kotler Keller Branding Slides
Moises Cielak
 
PPTX
Portafolio y hoja de vida
Juan Sebastian Orozc Arquitecto
 
PPTX
Gerencia ambiental(clase 3 y 4)
Ronald Paul Torrejon Infante
 
PPT
Human Trafficking Intro
tranceking
 
부천건마 동탄건마 《분당오피》 역삼역건마
sfalzgyc6
 
동탄건마 일산건마 《부천오피》 선릉역건마
sfalzgyc7
 
동탄건마 청주건마 《목동오피》 동탄건마
sfalzgyc6
 
수원건마 천안건마 《분당오피》 인천건마
sfalzgyc7
 
Human trafficking
johnny_d_92
 
동탄건마 일산건마 《부평오피》 부평건마
sfalzgyc7
 
분당건마 안양건마 《서현오피》 역삼역건마
sfalzgyc7
 
Podcast Analysis
Solomben
 
Kotler Keller Branding Slides
Moises Cielak
 
Portafolio y hoja de vida
Juan Sebastian Orozc Arquitecto
 
Gerencia ambiental(clase 3 y 4)
Ronald Paul Torrejon Infante
 
Human Trafficking Intro
tranceking
 
Ad

Similar to Message properties component (20)

PPTX
How to use message properties component
Anand kalla
 
PPTX
How to use message properties component
Khasim Saheb
 
PPTX
How to use message properties component
Sunil Komarapu
 
PPTX
How to use message properties component
irfan1008
 
PPTX
How to use message properties component
Phaniu
 
PPTX
How to use message properties component
princeirfancivil
 
PPTX
Mule Message Properties Component
Durga Prasad Kakarla
 
PPTX
How to use expression filter
Khasim Saheb
 
PPTX
How to use expression filter
Anand kalla
 
PPTX
How to use expression filter
Sunil Komarapu
 
PPTX
Filter expression in mule
javeed_mhd
 
PPTX
Filter expression
F K
 
PPTX
Filter expression
AbdulImrankhan7
 
PPTX
Filter expression
Sunil Komarapu
 
PPTX
How to use expression filter
Phaniu
 
PPTX
How to use expression filter
irfan1008
 
PPTX
How to use expression filter
mdfkhan625
 
PPTX
How to use expression filter
Praneethchampion
 
PPTX
How to use expression filter
princeirfancivil
 
PPTX
Property place holder
sivachandra mandalapu
 
How to use message properties component
Anand kalla
 
How to use message properties component
Khasim Saheb
 
How to use message properties component
Sunil Komarapu
 
How to use message properties component
irfan1008
 
How to use message properties component
Phaniu
 
How to use message properties component
princeirfancivil
 
Mule Message Properties Component
Durga Prasad Kakarla
 
How to use expression filter
Khasim Saheb
 
How to use expression filter
Anand kalla
 
How to use expression filter
Sunil Komarapu
 
Filter expression in mule
javeed_mhd
 
Filter expression
F K
 
Filter expression
AbdulImrankhan7
 
Filter expression
Sunil Komarapu
 
How to use expression filter
Phaniu
 
How to use expression filter
irfan1008
 
How to use expression filter
mdfkhan625
 
How to use expression filter
Praneethchampion
 
How to use expression filter
princeirfancivil
 
Property place holder
sivachandra mandalapu
 
Ad

More from F K (20)

PPT
WebServices introduction in Mule
F K
 
PPTX
Testing soapui
F K
 
PPTX
Java For Begineers
F K
 
PPTX
Vm component
F K
 
PPTX
Until successful component in mule
F K
 
PPTX
Quartz component
F K
 
PPTX
Mule management console installation
F K
 
PPTX
Mule esb made system integration easy
F K
 
PPTX
Junit in mule
F K
 
PPTX
Install sonarqube plugin in anypoint
F K
 
PPTX
Commit a project in svn using svn plugin in anypoint studio
F K
 
PPTX
Github plugin setup in anypoint studio
F K
 
PPTX
For each component
F K
 
PPTX
File component
F K
 
PPTX
Database component
F K
 
PPTX
Choice component
F K
 
PPTX
Mule with drools
F K
 
PPTX
Mule esb Data Weave
F K
 
PPTX
Idempotent filter in Mule
F K
 
PPTX
Creating dynamic json in Mule
F K
 
WebServices introduction in Mule
F K
 
Testing soapui
F K
 
Java For Begineers
F K
 
Vm component
F K
 
Until successful component in mule
F K
 
Quartz component
F K
 
Mule management console installation
F K
 
Mule esb made system integration easy
F K
 
Junit in mule
F K
 
Install sonarqube plugin in anypoint
F K
 
Commit a project in svn using svn plugin in anypoint studio
F K
 
Github plugin setup in anypoint studio
F K
 
For each component
F K
 
File component
F K
 
Database component
F K
 
Choice component
F K
 
Mule with drools
F K
 
Mule esb Data Weave
F K
 
Idempotent filter in Mule
F K
 
Creating dynamic json in Mule
F K
 

Recently uploaded (20)

PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
Q2 Leading a Tableau User Group - Onboarding
lward7
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Q2 Leading a Tableau User Group - Onboarding
lward7
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 

Message properties component

  • 2. Abstract • The main motto of this PPT is how to use Message Properties in our applications.
  • 4. • .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="MessagePropertiesFlow1" doc:name="MessagePropertiesFlow1"> • <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8089" path="messageproperties" doc:name="HTTP"/> • <message-properties-transformer scope="session" doc:name="Message Properties"> • <add-message-property key="property1" value="studio"/> • </message-properties-transformer> • <message-properties-transformer scope="outbound" doc:name="Message Properties"> • <add-message-property key="property2" value="mule"/> • </message-properties-transformer> • <logger message="--flow1--#[message.outboundProperties['property2']]--#[sessionVars['property1']]" level="INFO" doc:name="Logger"/> • <vm:outbound-endpoint exchange-pattern="request-response" path="messageproperties" doc:name="VM"/> • </flow> • <flow name="MessagePropertiesFlow2" doc:name="MessagePropertiesFlow2"> • <vm:inbound-endpoint exchange-pattern="request-response" path="messageproperties" doc:name="VM"/> • <logger message="---flow2--#[message.inboundProperties['property2']]--#[sessionVars['property1']]" level="INFO" doc:name="Logger"/> • </flow> • </mule>
  • 5. • Output: • INFO 2015-10-03 16:00:23,705 [[messageproperties].config.change.14.thread.1] org.mule.DefaultMuleContext: • ********************************************************************** • * Application: messageproperties * • * OS encoding: Cp1252, Mule encoding: UTF-8 * • * * • * Agents Running: * • * Clustering Agent * • * JMX Agent * • ********************************************************************** • INFO 2015-10-03 16:00:23,706 [[messageproperties].config.change.14.thread.1] org.mule.module.launcher.MuleDeploymentService: • ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ • + Started app 'messageproperties' + • ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ • INFO 2015-10-03 16:00:26,480 [[messageproperties].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: --flow1--mule--studio • INFO 2015-10-03 16:00:26,482 [[messageproperties].connector.http.mule.default.receiver.02] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.VM.mule.default.dispatcher.771015974'. Object is: VMMessageDispatcher • INFO 2015-10-03 16:00:26,482 [[messageproperties].connector.http.mule.default.receiver.02] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.VM.mule.default.dispatcher.771015974'. Object is: VMMessageDispatcher • INFO 2015-10-03 16:00:26,489 [[messageproperties].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: ---flow2--mule--studio
  • 6. • Flow of execution: 1. URL to trigger the service from browser http://localhost:8089/messageproperties 2. In flow1 both outbound and session property is created using message property component 3. Service displays both outbound and session properties in flow1 4. In flow2 the outbound property is changes to inbound proeprty 5. Flow2 displays both inbound and session property