際際滷

際際滷Share 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:
Ad

Recommended

Message properties component in mule demo
Message properties component in mule demo
Sudha Ch
Filter expression in mule
Filter expression in mule
Rajkattamuri
Mule introduction
Mule introduction
Satya Sekhar Das Mandal
Message properties component in mule
Message properties component in mule
Khan625
Mule esb :Data Weave
Mule esb :Data Weave
AnilKumar Etagowni
Expression filter in Mule
Expression filter in Mule
Khan625
Choice component in mule demo
Choice component in mule demo
Sudha Ch
Choice component in mule
Choice component in mule
Rajkattamuri
Mule security - spring security manager
Mule security - spring security manager
D.Rajesh Kumar
File component in mule demo
File component in mule demo
Sudha Ch
Mule Message Properties Component
Mule Message Properties Component
Durga Prasad Kakarla
Database component in mule
Database component in mule
Rajkattamuri
Filter expression in mule demo
Filter expression in mule demo
Sudha Ch
Mule esb
Mule esb
Khan625
File component in mule
File component in mule
Rajkattamuri
Expression filter in Mule
Expression filter in Mule
Mohammed246
Configurare http mule
Configurare http mule
Antonio Pellegrino
Message properties component in Mule
Message properties component in Mule
Khan625
For each component in mule
For each component in mule
Rajkattamuri
Mule concepts connectors
Mule concepts connectors
kunal vishe
How to get http query parameters in mule
How to get http query parameters in mule
Ramakrishna kapa
Mule properties
Mule properties
Gandham38
xslt in mule
xslt in mule
Praneethchampion
Simple groovy example in mule
Simple groovy example in mule
Anirban Sen Chowdhary
Accessing Mule variables in groovy
Accessing Mule variables in groovy
Anirban Sen Chowdhary
Message enricher in mule
Message enricher in mule
Sashidhar Rao GDS
Mule batch processing
Mule batch processing
himajareddys
Data weave in Mule
Data weave in Mule
RaviShankar Mishra
Mule: Java Component
Mule: Java Component
Sulthony Hartanto
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
Jitendra Bafna

More Related Content

What's hot (15)

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

Viewers also liked (20)

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

Recently uploaded (20)

Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
BradBedford3
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
NVIDIA GPU Technologies for AI and High-Performance Computing
NVIDIA GPU Technologies for AI and High-Performance Computing
SandeepKS52
Women in Tech: Marketo Engage User Group - June 2025 - AJO with AWS
Women in Tech: Marketo Engage User Group - June 2025 - AJO with AWS
BradBedford3
Best Practice for LLM Serving in the Cloud
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
Porting Qt 5 QML Modules to Qt 6 Webinar
Porting Qt 5 QML Modules to Qt 6 Webinar
ICS
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
soulamaabdoulaye128
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Safe Software
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
Introduction to Agile Frameworks for Product Managers.pdf
Introduction to Agile Frameworks for Product Managers.pdf
Ali Vahed
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
Complete WordPress Programming Guidance Book
Complete WordPress Programming Guidance Book
Shabista Imam
Canva Pro Crack Free Download 2025-FREE LATEST
Canva Pro Crack Free Download 2025-FREE LATEST
grete1122g
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
BradBedford3
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
NVIDIA GPU Technologies for AI and High-Performance Computing
NVIDIA GPU Technologies for AI and High-Performance Computing
SandeepKS52
Women in Tech: Marketo Engage User Group - June 2025 - AJO with AWS
Women in Tech: Marketo Engage User Group - June 2025 - AJO with AWS
BradBedford3
Best Practice for LLM Serving in the Cloud
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
Porting Qt 5 QML Modules to Qt 6 Webinar
Porting Qt 5 QML Modules to Qt 6 Webinar
ICS
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
soulamaabdoulaye128
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Safe Software
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
Introduction to Agile Frameworks for Product Managers.pdf
Introduction to Agile Frameworks for Product Managers.pdf
Ali Vahed
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
Complete WordPress Programming Guidance Book
Complete WordPress Programming Guidance Book
Shabista Imam
Canva Pro Crack Free Download 2025-FREE LATEST
Canva Pro Crack Free Download 2025-FREE LATEST
grete1122g
Ad

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: