[ 
https://issues.apache.org/jira/browse/FELIX-600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603048#action_12603048
 ] 

Felix Meschberger commented on FELIX-600:
-----------------------------------------

I could, but this would not, I fear. The problem here is, that the framework 
signals successfull installation/update when it is done. At this time the 
Declarative Services manager has scheduled the components to be activated.

So when the framework has finished updating the bundles Declarative Services is 
still working. So whether I wait for an event or not does not matter.

> Insert Delay before refreshing packages after install/update
> ------------------------------------------------------------
>
>                 Key: FELIX-600
>                 URL: https://issues.apache.org/jira/browse/FELIX-600
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-1.0.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: webconsole-1.0.1
>
>
> The WebConsole can be instructed to do a PackageAdmin.refreshPackages(null) 
> after installing or updating a bundle. As there may be some things going on 
> asynchronously behind the scenes after an installation/update, the call of 
> the refreshPackages method should be delayed. Because the install/update 
> actually works in a background thread, we can add such a delay without 
> delaying client interactivity.
> I insert a delay of 2 seconds for now. This is an empiric number, not a 
> scientifically computed one, but I assume it should work out fine.

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