MULE - order of precedence for application properties vs VM Args vs env variables

327 Views Asked by At

I need to know the order of precedence of application properties, VM arguments and system environment variables in mule application whenever we have same property defined in all the 3 places

I referred few documentations and articles. It is mentioned that the order is

application.properties > VM Arguments > System environment variables

But when I tested, I see below as the precedence

VM Arguments > System environment variables > application.properties

Can someone confirm me which is the correct one?

1

There are 1 best solutions below

0
On

After running through series of tests I have found following priority:

  1. VM Arguments
  2. Program Arguments
  3. System environment variables
  4. application.properties
  5. Global Property in application config