SlideShare a Scribd company logo
Overriding the property key based on the
order of Property files
*
*When we have configured our application to
use multiple property files in which some (or
all) properties are same, values from the most
recently read properties file will override the
values set by property files previous ones.
*For example,
*Below are the screenshots of the property files
in different scopes.
XML configuration to print the value read from the properties file:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:context="http://www.springframework.org/schema/context"
xmlns:http="http://www.mulesoft.org/schema/mule/http" 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.7.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-current.xsd
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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
<context:property-placeholder location="classpath:ClassPath.properties,file:C:/Softwares/Test
Files/File.properties"/>
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8123" doc:name="HTTP Listener
Configuration"/>
<flow name="PropertyplaceholderFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/expr" doc:name="HTTP"/>
<logger level="INFO" message="Property User Value::${user}" doc:name="Logger"/>
<set-payload value="Property User Value::${user}"/>
</flow>
</mule>
*
*Response for the above XML configuration:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:context="http://www.springframework.org/schema/context"
xmlns:http="http://www.mulesoft.org/schema/mule/http" 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.7.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-current.xsd
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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
<context:property-placeholder location="file:C:/Softwares/Test
Files/File.properties,classpath:ClassPath.properties"/>
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8123" doc:name="HTTP Listener
Configuration"/>
<flow name="PropertyplaceholderFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/expr" doc:name="HTTP"/>
<logger level="INFO" message="Property User Value::${user}" doc:name="Logger"/>
<set-payload value="Property User Value::${user}"/>
</flow>
</mule>
XML configuration to print the value read from the properties file:
*Response for above XML configuration:

More Related Content

PPTX
Message properties component in mule demo
Sudha Ch
 
PPTX
Filter expression in mule
Rajkattamuri
 
PPT
Mule introduction
Satya Sekhar Das Mandal
 
PPTX
Message properties component in mule
Khan625
 
PPTX
Mule esb :Data Weave
AnilKumar Etagowni
 
PPTX
Expression filter in Mule
Khan625
 
PPTX
Choice component in mule demo
Sudha Ch
 
PPTX
Choice component in mule
Rajkattamuri
 
Message properties component in mule demo
Sudha Ch
 
Filter expression in mule
Rajkattamuri
 
Mule introduction
Satya Sekhar Das Mandal
 
Message properties component in mule
Khan625
 
Mule esb :Data Weave
AnilKumar Etagowni
 
Expression filter in Mule
Khan625
 
Choice component in mule demo
Sudha Ch
 
Choice component in mule
Rajkattamuri
 

What's hot (15)

PPT
Mule security - spring security manager
D.Rajesh Kumar
 
PPTX
File component in mule demo
Sudha Ch
 
PPTX
Mule Message Properties Component
Durga Prasad Kakarla
 
PPTX
Database component in mule
Rajkattamuri
 
PPTX
Filter expression in mule demo
Sudha Ch
 
PPTX
Mule esb
Khan625
 
PPTX
File component in mule
Rajkattamuri
 
PPTX
Expression filter in Mule
Mohammed246
 
PPTX
Configurare http mule
Antonio Pellegrino
 
PPTX
Message properties component in Mule
Khan625
 
PPTX
For each component in mule
Rajkattamuri
 
PPTX
Mule concepts connectors
kunal vishe
 
PPTX
How to get http query parameters in mule
Ramakrishna kapa
 
PPTX
Mule properties
Gandham38
 
PPTX
xslt in mule
Praneethchampion
 
Mule security - spring security manager
D.Rajesh Kumar
 
File component in mule demo
Sudha Ch
 
Mule Message Properties Component
Durga Prasad Kakarla
 
Database component in mule
Rajkattamuri
 
Filter expression in mule demo
Sudha Ch
 
Mule esb
Khan625
 
File component in mule
Rajkattamuri
 
Expression filter in Mule
Mohammed246
 
Configurare http mule
Antonio Pellegrino
 
Message properties component in Mule
Khan625
 
For each component in mule
Rajkattamuri
 
Mule concepts connectors
kunal vishe
 
How to get http query parameters in mule
Ramakrishna kapa
 
Mule properties
Gandham38
 
xslt in mule
Praneethchampion
 
Ad

Viewers also liked (20)

PPTX
Simple groovy example in mule
Anirban Sen Chowdhary
 
PPTX
Accessing Mule variables in groovy
Anirban Sen Chowdhary
 
PPTX
Message enricher in mule
Sashidhar Rao GDS
 
PPT
Mule batch processing
himajareddys
 
PPTX
Data weave in Mule
RaviShankar Mishra
 
PPTX
Mule: Java Component
Sulthony Hartanto
 
PDF
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
Jitendra Bafna
 
PPTX
Mule fundamentals
prudhvivreddy
 
PPTX
Groovy demo
Ramakrishna kapa
 
PPTX
Groovy with Mule
irfan1008
 
PPTX
Scatter gather flow in mule
Praneethchampion
 
PPTX
Using groovy component
Rahul Kumar
 
PPTX
Mulesoft Using Groovy Component
kumar gaurav
 
PPTX
Transforming with custom transformer in mule
Praneethchampion
 
PPTX
Cloud hub with mule
Son Nguyen
 
PPTX
Mule MMC as a service
Anirban Sen Chowdhary
 
PPTX
Mule Groovy component
Ankush Sharma
 
PPTX
Process file one after another
Anirban Sen Chowdhary
 
PPTX
Using groovy in mule
Son Nguyen
 
PDF
Mule esb examples
Sashidhar Rao GDS
 
Simple groovy example in mule
Anirban Sen Chowdhary
 
Accessing Mule variables in groovy
Anirban Sen Chowdhary
 
Message enricher in mule
Sashidhar Rao GDS
 
Mule batch processing
himajareddys
 
Data weave in Mule
RaviShankar Mishra
 
Mule: Java Component
Sulthony Hartanto
 
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
Jitendra Bafna
 
Mule fundamentals
prudhvivreddy
 
Groovy demo
Ramakrishna kapa
 
Groovy with Mule
irfan1008
 
Scatter gather flow in mule
Praneethchampion
 
Using groovy component
Rahul Kumar
 
Mulesoft Using Groovy Component
kumar gaurav
 
Transforming with custom transformer in mule
Praneethchampion
 
Cloud hub with mule
Son Nguyen
 
Mule MMC as a service
Anirban Sen Chowdhary
 
Mule Groovy component
Ankush Sharma
 
Process file one after another
Anirban Sen Chowdhary
 
Using groovy in mule
Son Nguyen
 
Mule esb examples
Sashidhar Rao GDS
 
Ad

Similar to Mule property placeholder (20)

PPTX
Basic example using message properties component
prudhvivreddy
 
ODP
Different Types of Containers in Spring
Sunil kumar Mohanty
 
PPTX
Send email attachment using smtp in mule esb
Anand kalla
 
PPTX
Email using mule
Manav Prasad
 
PPTX
Send email attachment using smtp in mule esb
Praneethchampion
 
PPTX
Send email attachment using smtp in mule esb
irfan1008
 
PPTX
Send email attachment using smtp in mule esb
princeirfancivil
 
PPTX
Send email attachment using smtp in mule esb
Phaniu
 
PPTX
Choice component
Durga Prasad Kakarla
 
PPTX
Property place holder
sivachandra mandalapu
 
PPTX
Send email attachment using smtp in mule esb
RaviShankar Mishra
 
PPTX
Basic example using for each component
prudhvivreddy
 
PPTX
Send email attachment using smtp in mule esb
Sreekanth Kondapalli
 
PPTX
Message properties component
F K
 
PPTX
Message properties component
Sunil Komarapu
 
PPTX
Message properties component in mule
javeed_mhd
 
PPTX
How to use message properties component
mdfkhan625
 
PPTX
How to use message properties component
princeirfancivil
 
PPTX
How to use message properties component
irfan1008
 
PPTX
How to use message properties component
Phaniu
 
Basic example using message properties component
prudhvivreddy
 
Different Types of Containers in Spring
Sunil kumar Mohanty
 
Send email attachment using smtp in mule esb
Anand kalla
 
Email using mule
Manav Prasad
 
Send email attachment using smtp in mule esb
Praneethchampion
 
Send email attachment using smtp in mule esb
irfan1008
 
Send email attachment using smtp in mule esb
princeirfancivil
 
Send email attachment using smtp in mule esb
Phaniu
 
Choice component
Durga Prasad Kakarla
 
Property place holder
sivachandra mandalapu
 
Send email attachment using smtp in mule esb
RaviShankar Mishra
 
Basic example using for each component
prudhvivreddy
 
Send email attachment using smtp in mule esb
Sreekanth Kondapalli
 
Message properties component
F K
 
Message properties component
Sunil Komarapu
 
Message properties component in mule
javeed_mhd
 
How to use message properties component
mdfkhan625
 
How to use message properties component
princeirfancivil
 
How to use message properties component
irfan1008
 
How to use message properties component
Phaniu
 

Recently uploaded (20)

PDF
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PPTX
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
PPTX
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PPTX
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
PPTX
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
PDF
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
PDF
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
PDF
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
PDF
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
PPTX
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
PPTX
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PDF
Immersive experiences: what Pharo users do!
ESUG
 
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
Presentation about variables and constant.pptx
kr2589474
 
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
Immersive experiences: what Pharo users do!
ESUG
 

Mule property placeholder

  • 1. Overriding the property key based on the order of Property files *
  • 2. *When we have configured our application to use multiple property files in which some (or all) properties are same, values from the most recently read properties file will override the values set by property files previous ones. *For example, *Below are the screenshots of the property files in different scopes.
  • 3. XML configuration to print the value read from the properties file: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:context="http://www.springframework.org/schema/context" xmlns:http="http://www.mulesoft.org/schema/mule/http" 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.7.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-current.xsd 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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"> <context:property-placeholder location="classpath:ClassPath.properties,file:C:/Softwares/Test Files/File.properties"/> <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8123" doc:name="HTTP Listener Configuration"/> <flow name="PropertyplaceholderFlow"> <http:listener config-ref="HTTP_Listener_Configuration" path="/expr" doc:name="HTTP"/> <logger level="INFO" message="Property User Value::${user}" doc:name="Logger"/> <set-payload value="Property User Value::${user}"/> </flow> </mule> *
  • 4. *Response for the above XML configuration:
  • 5. <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:context="http://www.springframework.org/schema/context" xmlns:http="http://www.mulesoft.org/schema/mule/http" 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.7.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-current.xsd 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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"> <context:property-placeholder location="file:C:/Softwares/Test Files/File.properties,classpath:ClassPath.properties"/> <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8123" doc:name="HTTP Listener Configuration"/> <flow name="PropertyplaceholderFlow"> <http:listener config-ref="HTTP_Listener_Configuration" path="/expr" doc:name="HTTP"/> <logger level="INFO" message="Property User Value::${user}" doc:name="Logger"/> <set-payload value="Property User Value::${user}"/> </flow> </mule> XML configuration to print the value read from the properties file:
  • 6. *Response for above XML configuration: