Config Examples: mule-app.properties in Mule 3

The mule-app.properties file in Mule 3, can be used to specify certain variables to be used in the flow. For example (click to enlarge):


And then you can use these variables in say a database connector for instance:

  • User: ${mysql.user}
  • Password: ${mysql.password}
~~~

Note: Before zipping up your Mule Application to deploy in Anypoint Platform Runtime Manager, delete the properties from mule-app.properties, that you want to specify as properties in the Application setup in Runtime Manager. See example below:


In the above example, when we deploy the application we specify the highlighted key value pairs (we use the same application multiple times - just with different settings.)

Comments