SlideShare a Scribd company logo
Message properties component in mule
 The main motto of this PPT is how to use
Message Properties in our applications.
Message properties component in mule
 .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

What's hot (17)

PPTX
Mule Message Properties Component
Durga Prasad Kakarla
 
PPTX
Mule property placeholder
Sashidhar Rao GDS
 
PPTX
How to get http query parameters in mule
Ramakrishna kapa
 
ODP
Mule ESB SMTP Connector Integration
AnilKumar Etagowni
 
PPTX
File component in mule demo
Sudha Ch
 
PPTX
Configurare https mule
Antonio Pellegrino
 
PPTX
For each component in mule
Rajkattamuri
 
PPTX
File component in mule
Rajkattamuri
 
PPTX
xslt in mule
Praneethchampion
 
PPTX
Mule esb
Khan625
 
PPTX
Send email attachment using smtp in mule esb
Praneethchampion
 
PPTX
Mule esb :Data Weave
AnilKumar Etagowni
 
PPTX
Creating restful api using mule esb
RaviShankar Mishra
 
PPTX
Xslt in mule
Mohammed246
 
PPTX
Mule Esb Data Weave
Mohammed246
 
PPTX
Quartz component in mule demo
Sudha Ch
 
PPTX
Message properties component in Mule
Khan625
 
Mule Message Properties Component
Durga Prasad Kakarla
 
Mule property placeholder
Sashidhar Rao GDS
 
How to get http query parameters in mule
Ramakrishna kapa
 
Mule ESB SMTP Connector Integration
AnilKumar Etagowni
 
File component in mule demo
Sudha Ch
 
Configurare https mule
Antonio Pellegrino
 
For each component in mule
Rajkattamuri
 
File component in mule
Rajkattamuri
 
xslt in mule
Praneethchampion
 
Mule esb
Khan625
 
Send email attachment using smtp in mule esb
Praneethchampion
 
Mule esb :Data Weave
AnilKumar Etagowni
 
Creating restful api using mule esb
RaviShankar Mishra
 
Xslt in mule
Mohammed246
 
Mule Esb Data Weave
Mohammed246
 
Quartz component in mule demo
Sudha Ch
 
Message properties component in Mule
Khan625
 

Viewers also liked (15)

PPTX
Mule Microsoft Service Bus
Ankush Sharma
 
PPTX
Scatter and gather in mule
Rajkattamuri
 
PPTX
Mule enricher
Ravinder Singh
 
PPTX
DockerCon 2016 Recap
Stefan Scherer
 
PPTX
MuleSoft ESB Composite Source
akashdprajapati
 
PPTX
Anypoint access management - Users
Shanky Gupta
 
PPTX
Controlling Message Flow - Mule ESB
Mani Rathnam Gudi
 
PPTX
Mule Security
Shanky Gupta
 
PDF
How to manage technology obsolescence with LeanIX Enterprise Architecture Man...
LeanIX GmbH
 
PDF
Docker 1.12 networking deep dive
Madhu Venugopal
 
PDF
Introduction to TensorFlow
Matthias Feys
 
PPTX
Scaling Jenkins with Kubernetes by Ami Mahloof
DoiT International
 
PDF
Kubernetes Architecture and Introduction – Paris Kubernetes Meetup
Stefan Schimanski
 
Mule Microsoft Service Bus
Ankush Sharma
 
Scatter and gather in mule
Rajkattamuri
 
Mule enricher
Ravinder Singh
 
DockerCon 2016 Recap
Stefan Scherer
 
MuleSoft ESB Composite Source
akashdprajapati
 
Anypoint access management - Users
Shanky Gupta
 
Controlling Message Flow - Mule ESB
Mani Rathnam Gudi
 
Mule Security
Shanky Gupta
 
How to manage technology obsolescence with LeanIX Enterprise Architecture Man...
LeanIX GmbH
 
Docker 1.12 networking deep dive
Madhu Venugopal
 
Introduction to TensorFlow
Matthias Feys
 
Scaling Jenkins with Kubernetes by Ami Mahloof
DoiT International
 
Kubernetes Architecture and Introduction – Paris Kubernetes Meetup
Stefan Schimanski
 
Ad

Similar to Message properties component in mule (20)

PPTX
Wildcard Filter
sivachandra mandalapu
 
PPTX
How to use message properties component
irfan1008
 
PPTX
How to use message properties component
Phaniu
 
PPTX
How to use message properties component
mdfkhan625
 
PPTX
How to use message properties component
princeirfancivil
 
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
Expression
sivachandra mandalapu
 
PPTX
Message properties component
F K
 
PPTX
Message properties component
Sunil Komarapu
 
PPTX
Message properties component in mule
javeed_mhd
 
PPTX
Property place holder
sivachandra mandalapu
 
PPTX
How to use message properties component
maheshtheapex
 
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
Basic example using message properties component
prudhvivreddy
 
PPTX
How to use expression filter
RaviRajuRamaKrishna
 
PPTX
How to use wildcard filter
RaviRajuRamaKrishna
 
Wildcard Filter
sivachandra mandalapu
 
How to use message properties component
irfan1008
 
How to use message properties component
Phaniu
 
How to use message properties component
mdfkhan625
 
How to use message properties component
princeirfancivil
 
How to use message properties component
Anand kalla
 
How to use message properties component
Khasim Saheb
 
How to use message properties component
Sunil Komarapu
 
Message properties component
F K
 
Message properties component
Sunil Komarapu
 
Message properties component in mule
javeed_mhd
 
Property place holder
sivachandra mandalapu
 
How to use message properties component
maheshtheapex
 
How to use expression filter
Khasim Saheb
 
How to use expression filter
Anand kalla
 
How to use expression filter
Sunil Komarapu
 
Basic example using message properties component
prudhvivreddy
 
How to use expression filter
RaviRajuRamaKrishna
 
How to use wildcard filter
RaviRajuRamaKrishna
 
Ad

More from Khan625 (20)

PPTX
Mapping and listing in mule
Khan625
 
PPTX
Jenkins Build System
Khan625
 
PPTX
Building and Managing Projects with Maven
Khan625
 
PPTX
Web services soap
Khan625
 
PPTX
Web services wsdl
Khan625
 
PPTX
Web services uddi
Khan625
 
PPTX
Web services with soap
Khan625
 
PPTX
Maven
Khan625
 
PPTX
WebServices Basic Overview
Khan625
 
PPTX
Java Basics
Khan625
 
PPTX
Mmc rest api user groups
Khan625
 
PPTX
Mapping and listing with mule
Khan625
 
PPTX
Data weave
Khan625
 
PPT
Anypoint data gateway
Khan625
 
PPTX
Mule with drools
Khan625
 
PPTX
Idempotent filter with simple file
Khan625
 
PPTX
Mule with quartz
Khan625
 
PPTX
Mule with rabbit mq
Khan625
 
PPTX
Mule with velocity
Khan625
 
PPTX
Scatter gather flow control
Khan625
 
Mapping and listing in mule
Khan625
 
Jenkins Build System
Khan625
 
Building and Managing Projects with Maven
Khan625
 
Web services soap
Khan625
 
Web services wsdl
Khan625
 
Web services uddi
Khan625
 
Web services with soap
Khan625
 
Maven
Khan625
 
WebServices Basic Overview
Khan625
 
Java Basics
Khan625
 
Mmc rest api user groups
Khan625
 
Mapping and listing with mule
Khan625
 
Data weave
Khan625
 
Anypoint data gateway
Khan625
 
Mule with drools
Khan625
 
Idempotent filter with simple file
Khan625
 
Mule with quartz
Khan625
 
Mule with rabbit mq
Khan625
 
Mule with velocity
Khan625
 
Scatter gather flow control
Khan625
 

Recently uploaded (20)

PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
July Patch Tuesday
Ivanti
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 

Message properties component in mule

  • 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