[ 
https://issues.apache.org/jira/browse/SLING-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749797#action_12749797
 ] 

Bertrand Delacretaz commented on SLING-739:
-------------------------------------------

Added log messages in revision 809855, which log the name of the configuration 
file that's actually used.

Using the sling.repository.config.file.url option can be a bit confusing, 
because:

1) It is only used to create the default configuration used by the 
org.apache.sling.jcr.jackrabbit.server bundle. Once that configuration is 
created, changing the property value has no effect.

The actual value can be checked and changed in the 
org.apache.sling.jcr.jackrabbit.server configuration page.

2) If the property value points to a non-existing file, or to an HTTP URL, it 
is silently ignored and the default is used instead.

The added log messages should help troubleshoot this.

> Improve the Sling Embedded repository config to make it more flexible
> ---------------------------------------------------------------------
>
>                 Key: SLING-739
>                 URL: https://issues.apache.org/jira/browse/SLING-739
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR
>    Affects Versions: 3
>            Reporter: Juan Jose Vazquez Delgado
>            Assignee: Juan Jose Vazquez Delgado
>            Priority: Minor
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> As discussed in [1], it would be necessary to make the Sling embedded 
> repository configuration more flexible. Use cases for this can be:
> * Work with another persistent manager for nodes (rather than default one but 
> already supported by Jackrabbit. See [2]).
> * Custom login module and access manager.
> * Change the name of the repository.
> The propossal is having three new properties:
> #
> # The name of the JCR repository. Default is "jackrabbit".
> # sling.repository.name = 
> #
> # The JCR repository home directory. Default is 
> sling.home/sling.repository.name.
> # sling.repository.home = 
> #
> # The JCR repository url config file (repository.xml). Default is 
> repository.xml in
> # bundle Embedded JCR Repository
> # sling.repository.config.file.url =
> These properties can be set in sling.properties, as system properties or as 
> web app init-params. The properties are not mandatory. The default beahaviour 
> is a "jackrabbit" repo under sling home if the properties are not set.
> [1] http://markmail.org/search/Customizing+the+Sling+embedded+repository 
> [2] 
> http://markmail.org/message/2mtvc3egw5omcrbd?q=Customizing+the+Sling+embedded+repository

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to