Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

What is the order of resolution of run modes?

Avatar

Level 2

What will be the order of resolution of aem(6.0) run mode if it is mentioned in all 4 ways

1.jar file name

2.sling.properties file

3.using -r on command prompt

4.using -Dsling.run.modes

The order conflicts in these two sites

https://helpx.adobe.com/experience-manager/kb/RunModeSetUp.html

Behavior when run modes are specified more than one way

The run mode specified in the naming of the jar file takes precedence. If run modes are not specified in the naming of the jar file, the values in the sling.properties file are used. If run modes are not specified in either the naming of the jar file or the sling.properties file, the system property (or JVM argument) is used.

 

https://docs.adobe.com/docs/en/aem/6-0/deploy/configuring/configure-runmodes.html#Starting%20CQ%20wi...

Starting CQ with a specific run mode

If you have defined configurations for multiple run modes then you need to define which is to be used upon startup. There are several methods for specifying which run mode to use; the order of resolution is:

  1. sling.properties file
  2. -r option
  3. system properties (-D)
  4. Filename detection
1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi ,

Thanks for feedback.

  • Documentation is right & kb  needs update.  
  • Always applied run modes can be verified in felix console http://<host>:<port>/system/console/config in tab "Sling Settings".
  • Also you might need to delete the sling.options.file found under crx-quickstart/launchpad/*  in case you are not seeing the behavior as per doc.

Please have a look at this old forum post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

I hope this will help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

Hi ,

Thanks for feedback.

  • Documentation is right & kb  needs update.  
  • Always applied run modes can be verified in felix console http://<host>:<port>/system/console/config in tab "Sling Settings".
  • Also you might need to delete the sling.options.file found under crx-quickstart/launchpad/*  in case you are not seeing the behavior as per doc.

Please have a look at this old forum post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

I hope this will help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni