How does AEM determine with config is applied (config using runmodes)? | Community
Skip to main content
jayv25585659
Level 8
June 17, 2021
Solved

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

  • June 17, 2021
  • 2 replies
  • 1281 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

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!

2 replies

Dipti_Chauhan
Community Advisor
Community Advisor
June 17, 2021

Hi @jayv25585659 

  In you case 

- config.author.prod

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

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
June 17, 2021

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!