felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-2510) Configuration not provided to components if Configuration Admin is not active while setting up components
Date Tue, 03 Aug 2010 07:13:15 GMT

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

Felix Meschberger resolved FELIX-2510.

    Resolution: Fixed

In Rev. 981761: Ensure configuration is provided to components even if the Configuration Admin
service is registered after Declarative Services has started. To this avail, a ServiceListener
is registered, which handled the Configuration Admin service registration by calling the configurationEvent
method for existing configurations.

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

View raw message