Hi Bertrand, Can I ask how you might set the "runmode" of a server. The Sling 5 instance I have doesn't seem to have the org.apache.sling.runmode bundle. The CQ5 instance I have does, but I have looked for an OSGi configuration page for that bundle but can't find one. I do see the RunMode page in the felix console with the mode set to "author".
There is just a TODO in the documentation for this feature (http://sling.apache.org/site/jcr-installer-jcrjcrinstall-and-osgiinstal ler.html) Kind regards, Chris Pilsworth -----Original Message----- From: Bertrand Delacretaz [mailto:[email protected]] Sent: 27 November 2009 09:27 To: users Subject: Re: Loading configuration files On Fri, Nov 27, 2009 at 10:06 AM, Alexander Klimetschek <[email protected]> wrote: > .../apps/mybundle/config/org.apache.sling.config.log.LogManager.factory > (using the sling:OsgiConfig nodetype)... The folder name has to be "install" with the default jcrinstall config used in Sling (that's DEFAULT_FOLDER_NAME_REGEXP in JcrInstaller.java: .*/install$). Or install.foo where foo is a runmode that's currently active, as set by the org.apache.sling.runmode bundle - this allows you to have different configs based on run mode. So that would be /apps/mybundle/install/org.... and it's correct that the node that holds the config has to be of sling:OsgiConfig node type. Note that dashes in the sling:OsgiConfig node name have a special meaning, they are used to separate between the factory and configuration PIDs, a node named like o.a.s.foo.bar-a for example uses "a" as its factory PID, and "o.a.s.foo.bar" as its configuration PID . -Bertrand
