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

Felix Meschberger resolved FELIX-279.
-------------------------------------

    Resolution: Fixed

Fixed the concurrency issues by having a single actor thread, which is fed with 
tasks (Runnable). Whenever a component needs to change state
(enable, activate, deactivate, disable), the respective action is packed in a 
Runnable and scheduled for asynchronous operation.

The only exceptions to this rule is the creation of the ComponentManager 
instance and the disposal of a ComponentManager. The latter is synchronous to 
be sure to have the ComponentManager destroyed before the framework itself 
takes actions such as unregistering services and taking class loaders out of 
service.

Fixed in Rev 538123.

> Concurrency Issues when enabling components
> -------------------------------------------
>
>                 Key: FELIX-279
>                 URL: https://issues.apache.org/jira/browse/FELIX-279
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services
>            Reporter: Felix Meschberger
>         Assigned To: Felix Meschberger
>             Fix For: 1.0.0
>
>
> When bundles are started and their components registered, enabled and 
> activated and configuration is provided to them, timing issues may occurr, 
> such that in the end some components may not be started at all.

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