SlideShare a Scribd company logo
By
Sudha Ch
 The main motto of this PPT is how to use
Message Properties in our applications.
Message properties component in mule demo
 .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
 http://www.mulesoft.org/documentation-
3.2/display/32X/Message+Property+Scopes

More Related Content

PPTX
Choice component in mule demo
PPTX
Message properties component in mule
PPTX
Expression filter in Mule
PPTX
Expression filter in Mule
PPTX
Filter expression in mule
PPTX
Mule property placeholder
PPTX
Mule Message Properties Component
PPTX
Mule esb :Data Weave
Choice component in mule demo
Message properties component in mule
Expression filter in Mule
Expression filter in Mule
Filter expression in mule
Mule property placeholder
Mule Message Properties Component
Mule esb :Data Weave

What's hot (15)

PPTX
Using XSLT in Mule
PPTX
File component in mule demo
PPTX
File component in mule
PPTX
Mule esb
PPTX
Configurare http mule
PPTX
Filter expression in mule demo
PPTX
How to get http query parameters in mule
PPTX
Until successful component in mule
PPTX
Message properties component in Mule
PPTX
Quartz component in mule demo
PPTX
Xslt in mule
PPTX
How to use smtp endpoint
PPTX
Choice component in mule
PPTX
xslt in mule
PPTX
For each component in mule
Using XSLT in Mule
File component in mule demo
File component in mule
Mule esb
Configurare http mule
Filter expression in mule demo
How to get http query parameters in mule
Until successful component in mule
Message properties component in Mule
Quartz component in mule demo
Xslt in mule
How to use smtp endpoint
Choice component in mule
xslt in mule
For each component in mule
Ad

Viewers also liked (16)

DOCX
CV GUPRON & DOKUMEN LAIN
PDF
Boletín de novidades. Sección adultos. Setembro-outubro 2015
PPT
Doing Business In Web 2
PPTX
Mule for each scope headerc ollection
PPTX
Mule soap
PPTX
Validate Soap Request in Mule
PPT
Mule technology
DOC
Nurses_Self Reported_Self Asssessment_2015
PDF
Školský poriadok ZŠ Vazovova 4 Bratislava
PPTX
Jordy 3 parcial dfso
PPTX
Mule in a nutshell
PPTX
Salesforce Integration using Mule ESB
PDF
Introduction To Applied Machine Learning
PPTX
PostgreSQL使いのエンジニアから見たMySQL
PPT
Implementation in mule esb
PPTX
Silver Line Update: Dec. 1, 2015
CV GUPRON & DOKUMEN LAIN
Boletín de novidades. Sección adultos. Setembro-outubro 2015
Doing Business In Web 2
Mule for each scope headerc ollection
Mule soap
Validate Soap Request in Mule
Mule technology
Nurses_Self Reported_Self Asssessment_2015
Školský poriadok ZŠ Vazovova 4 Bratislava
Jordy 3 parcial dfso
Mule in a nutshell
Salesforce Integration using Mule ESB
Introduction To Applied Machine Learning
PostgreSQL使いのエンジニアから見たMySQL
Implementation in mule esb
Silver Line Update: Dec. 1, 2015
Ad

Similar to Message properties component in mule demo (20)

PPTX
Wildcard Filter
PPTX
Property place holder
PPTX
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
How to use message properties component
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
 
PPTX
Message properties component
PPTX
Message properties component in mule
PPTX
How to use message properties component
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use wildcard filter
PPTX
Expression Filters
Wildcard Filter
Property place holder
How to use message properties component
How to use message properties component
How to use message properties component
How to use message properties component
How to use message properties component
How to use message properties component
How to use message properties component
Message properties component
 
Message properties component
Message properties component in mule
How to use message properties component
How to use expression filter
How to use expression filter
How to use expression filter
How to use expression filter
How to use wildcard filter
Expression Filters

More from Sudha Ch (13)

PPTX
Git hub plugin setup and working with Git hub on anypoint studio
PPTX
Mule management console installation with Tomcat
PPTX
How to commit a project in svn using svn plugin in anypoint studio
PPTX
JUnit and MUnit Set Up In Anypoint Studio
PPTX
How To Install Sonar Qube Plugin In Anypoint Studio
PPTX
Vm component in mule demo
PPTX
Until successful component in mule demo
PPTX
Junit in mule demo
PPTX
For each component in mule demo
PPTX
Database component in mule demo
PPTX
Mule esb made system integration easy
PPTX
Telling the world why we love mule soft!
PPTX
Telling the world why we love mule soft!
Git hub plugin setup and working with Git hub on anypoint studio
Mule management console installation with Tomcat
How to commit a project in svn using svn plugin in anypoint studio
JUnit and MUnit Set Up In Anypoint Studio
How To Install Sonar Qube Plugin In Anypoint Studio
Vm component in mule demo
Until successful component in mule demo
Junit in mule demo
For each component in mule demo
Database component in mule demo
Mule esb made system integration easy
Telling the world why we love mule soft!
Telling the world why we love mule soft!

Recently uploaded (20)

PPTX
Transform Your Business with a Software ERP System
PPTX
history of c programming in notes for students .pptx
PPTX
Essential Infomation Tech presentation.pptx
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Digital Strategies for Manufacturing Companies
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
L1 - Introduction to python Backend.pptx
PDF
AI in Product Development-omnex systems
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Understanding Forklifts - TECH EHS Solution
PDF
medical staffing services at VALiNTRY
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Introduction to Artificial Intelligence
PPTX
ai tools demonstartion for schools and inter college
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
How Creative Agencies Leverage Project Management Software.pdf
Transform Your Business with a Software ERP System
history of c programming in notes for students .pptx
Essential Infomation Tech presentation.pptx
2025 Textile ERP Trends: SAP, Odoo & Oracle
PTS Company Brochure 2025 (1).pdf.......
Digital Strategies for Manufacturing Companies
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Design an Analysis of Algorithms I-SECS-1021-03
L1 - Introduction to python Backend.pptx
AI in Product Development-omnex systems
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Understanding Forklifts - TECH EHS Solution
medical staffing services at VALiNTRY
Odoo POS Development Services by CandidRoot Solutions
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Introduction to Artificial Intelligence
ai tools demonstartion for schools and inter college
VVF-Customer-Presentation2025-Ver1.9.pptx
How Creative Agencies Leverage Project Management Software.pdf

Message properties component in mule demo

  • 2.  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