Expand my Community achievements bar.

SOLVED

Misleading documentation on run modes & their order of precedence

Avatar

Level 2

The documentation on this URL(https://docs.adobe.com/docs/en/aem/6-1/deploy/configuring/configure-runmodes.html) says the below: 

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

Where as this article(https://helpx.adobe.com/experience-manager/kb/RunModeSetUp.html) says as below. Both from the official adobe site. Which is correct?

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Guruprasad,

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.

Can you please file daycare case to track this out?

Thanks,

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi Guruprasad,

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.

Can you please file daycare case to track this out?

Thanks,