You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/08/16 14:12:26 UTC

[jira] Closed: (FELIX-2510) Configuration not provided to components if Configuration Admin is not active while setting up components

     [ https://issues.apache.org/jira/browse/FELIX-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed FELIX-2510.
------------------------------------


Apache Felix Declarative Services 1.6.0 has been released. The issues are now closed.

> Configuration not provided to components if Configuration Admin is not active while setting up components
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2510
>                 URL: https://issues.apache.org/jira/browse/FELIX-2510
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.2.0,  scr-1.4.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For:  scr-1.6.0
>
>
> In earlier versions of the Declarative Services implementation, configuration for the components has been provided by the Declarative Services bundle registering ManagedService[Factory] services for each component registered. This ensured configuration to be provided by Configuration Admin service to the components once Configuration Admin service is active, configuration is present and a Component is here to take it.
> The drawback is, that this mechanism operates completely asynchronous (potentially causing components to be cycled during fire-up). Thus Configuration is now provided to the Components by the Declarative Services implementation by asking the Configuration Admin service for configuration on behalf of the components. Configuration updates are forwarded by the DS registering a ConfigurationListener.
> The problem now is, if Declarative Services is started (and has set up Components) before the Configuration Admin service is present, configuration will never be provided to components.
> To fix this, Declarative Services should register for service events to hear when Configuration Admin becomes present to be able to forward any configuration to the components.

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