What is the order of resolution of run modes? | Community
Skip to main content
Level 2
June 7, 2016
Solved

What is the order of resolution of run modes?

  • June 7, 2016
  • 1 reply
  • 1531 views

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%20with%20a%20specific%20run%20mode

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
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 kautuk_sahni

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-manager.topic.html/forum__2ojy-the_documentationon.html

I hope this will help you.

Thanks and Regards

Kautuk Sahni

1 reply

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
June 7, 2016

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-manager.topic.html/forum__2ojy-the_documentationon.html

I hope this will help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni