Contact Us 1-800-596-4880

Introduction to Mule 4: Configuring Mule Apps

This version of Mule reached its End of Life on May 2, 2023, when Extended Support ended.

Deployments of new applications to CloudHub that use this version of Mule are no longer allowed. Only in-place updates to applications are permitted.

MuleSoft recommends that you upgrade to the latest version of Mule 4 that is in Standard Support so that your applications run with the latest fixes and security enhancements.

In Mule 3, Spring property placeholders are often used to configure apps dynamically for the environment in which they are deployed. Mule 4 contains a built-in mechanism for this that allows you to set default values and avoid the need to learn Spring.

These properties are stored in a YAML file:

http:
  path: service
  port: "10000"

You can add the YAML file to your Mule app through the Global Element called Configuration Properties. The XML for it looks like this:

<configuration-properties file="myConfiguration.yaml" />

MuleSoft highly recommends that you do not package the configuration files for all the environments inside your app. Instead, you should use this file to provide defaults, then use Runtime Manager to override each of these properties at deployment time.