Search code examples
muleesbanypoint-studio

One properties configuration file for Multi Apps on Mule ESB runtime


Today I have the same properties configurated on mule-app.properties file for each Apps. Like this:

enter image description here

All Apps (+ that 5) are running on the same Mule ESB runtime (CE).

For example, when It is necessary to change a host or password, I need to change the properties file of the all apps.

I would like to have just one properties file on Mule ESB runtime shared by all apps.

Is there a form to make this?

Thanks!


Solution

  • You can create a new Mule project and call it "shared". Now, in this project, you can create a file src/main/resources/config.properties and there put all the settings you need.

    To have these settings in your current project, just add the project "shared" in the "Projects" tab of the "Java Build Path". Then in the main file of your current project, write

    < context: property-placeholder location="config.properties" />