Expand my Community achievements bar.

SOLVED

How does AEM determine with config is applied (config using runmodes)?

Avatar

Level 9

example:

- config.author

  - com.myhost.my-config-here.xml

- config.author.prod

  - com.myhost.my-config-here.xml

 

My AEM instance has the following runmodes (via /system/console/status-slingsettings):

Run Modes = [crx3tar-nofds, prod, s7connect, crx3, nosamplecontent, author]

 Which of my om.myhost.my-config-here.xml config is applied to the instance? thank you.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @jayv25585659 

 

In AEM, every run mode tries to find out the best possible match available for a configuration.
If multiple configurations for the same PID are applicable like in your case here, the configuration with the highest number of matching run modes is applied. i.e. prod and author here.
So configuration from config.author.prod will be picked.
 
Reference:
 
Thanks!

View solution in original post

2 Replies

Avatar

Community Advisor

Hi @jayv25585659 

  In you case 

- config.author.prod

  - com.myhost.my-config-here.xml  will be applied. AEM will look for maximum match.

Avatar

Correct answer by
Community Advisor

Hi @jayv25585659 

 

In AEM, every run mode tries to find out the best possible match available for a configuration.
If multiple configurations for the same PID are applicable like in your case here, the configuration with the highest number of matching run modes is applied. i.e. prod and author here.
So configuration from config.author.prod will be picked.
 
Reference:
 
Thanks!