> 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)...

On Fri, Nov 27, 2009 at 10:26 AM, Bertrand Delacretaz
<[email protected]> wrote:
> 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 .

Aha - THAT's the clue!
Creating a node at
/apps/mybundle/install/org.apache.sling.commons.log.LogManager.factory.config-something.json,
with jcr:primaryType=sling:OsgiConfig did what I wanted.
Thanks, both of you!

-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070

Reply via email to