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

Guillaume Nodet commented on KARAF-2338:
----------------------------------------

The felix fileinstall active level only control the start level under which 
fileinstall won't do anything.
In all cases, you need to remember that the start level has nothing to do with 
the deployment order, as the start level of a bundle affects when a bundle is 
started, not deployed.

At deployment time, if the framework start level is higher than the bundle 
start level, the bundle will be started when installed.  Once the process is 
synchronous, it should be possible to ensure that bundles are deployed while 
the framework is still at a low start level (they should be deployed at the 
same start level than the features service bundle, provided blueprint is 
configured synchronously).

I've raise KARAF-2339 to better control the deployment of the boot features and 
it will certainly help in your case.  For fileinstall, the deployment is always 
asynchronous, so can only be controlled in a way to delay the installation of 
bundles via fileinstall.
                
> Felix File Install property (felix.fileinstall.active.level) is not working
> ---------------------------------------------------------------------------
>
>                 Key: KARAF-2338
>                 URL: https://issues.apache.org/jira/browse/KARAF-2338
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 2.2.9, 2.3.0
>            Reporter: Shrish Srivastava
>            Assignee: Jean-Baptiste Onofré
>         Attachments: Bundle3-0.0.1-SNAPSHOT.jar, 
> org.apache.felix.fileinstall-deploy.cfg, try.zip
>
>
> We are having 3 bundles and we want to deploy bundle1 and bundle 2 as part of 
> boot feature and bundle 3 via file install(deploy folder).
> We want to maintain the deployment order in such a way that bundle as part of 
> boot feature deployed first and then bundle from deploy folder is deployed.
> For example: 
> 1st)Bundle2
> 2nd)Bundle1
> 3rd)Bundle3
> In order to maintain this behavior we have set the following property in 
> org.apache.felix.fileinstall-deploy.cfg 
> felix.fileinstall.active.level =84
> This level is way higher than the Bundle1(Level:75) & Bundle2(Level:60) level
> But we are not able to achieve the required behavior after launching the 
> karaf with clean cache.
> The bundles are getting deployed in the following order.
> 1)Bundle2
> 2)Bundle3
> 3)Bundle1
> When I restart the karaf(without cleaning cache) then bundles are getting 
> deployed in the right order.
> 1)Bundle2
> 2)Bundle1
> 3)Bundle3
>  
> It look like that "felix.fileinstall.active.level" is not applied properly. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to