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

Carsten Ziegeler commented on SLING-2491:
-----------------------------------------

First, use confAdmin.getConfiguration(pid, null) - this ensures that a new 
configuration is not bound to your code.
Second, config.getProperties() returns null, if this is a new configuration, in 
that case just create a new dictionary
Once you call update(Dictionary), either a new configuration with these values 
is created or the existing one is updated

For further information please read chapter 104 of the OSGi compendium spec 
(Configuration Admin)
                
> How can I change the self.registration.enabled property in java?
> ----------------------------------------------------------------
>
>                 Key: SLING-2491
>                 URL: https://issues.apache.org/jira/browse/SLING-2491
>             Project: Sling
>          Issue Type: Task
>          Components: JCR
>    Affects Versions: JCR Jackrabbit User Manager 2.1.0
>         Environment: Xubuntu
>            Reporter: Chris Papagrigoriou
>
> Hey I kinda can't find out how to change the the self.registration.enabled 
> property of the CreateUserServlet.
> I tried it via the ConfigurationAdmin but it doesn't seem to work.
> Can anyone tell me how to change it?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to