Professional Documents
Culture Documents
DIY Exercise 7-2 - Define and Use Application Properties
DIY Exercise 7-2 - Define and Use Application Properties
DIY Exercise 7-2 - Define and Use Application Properties
Objectives
In this exercise, you configure a Mule application to preserve data after it crosses a connection
boundary and then define and use application properties for all HTTP Request operation
configuration information. You will:
• Preserve data submitted to a flow using a connection boundary.
• Make HTTP requests asynchronously.
• Add property placeholders to a Mule application.
• Create a configuration properties YAML file to store property placeholders in a hierarchy.
• Save common values to global properties.
Scenario
Additional data processing requirements are added for the project. To process the data, you
need to make a request to an external endpoint (simulated by making an HTTP Request to
another flow in your Mule application). You are also tasked with making the project more
maintainable by defining and using application properties for the configuration information for all
HTTP Request operations.
Next, add property placeholders for all configuration information for all HTTP Request
operations including host, port, paths, and url.
Once all properties have been created in env-properties.yaml, refactor the Mule application to
refer to these property values in env-properties.yaml. There should be no hard-coded values in
any of the HTTP operations or HTTP configurations.