karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-885) StartBundle doesn't deploy all bundles if one failed
Date Thu, 29 Sep 2011 08:48:45 GMT

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

Jean-Baptiste Onofré commented on KARAF-885:
--------------------------------------------

Fixed on trunk: revision 1177219.
                
> StartBundle doesn't deploy all bundles if one failed
> ----------------------------------------------------
>
>                 Key: KARAF-885
>                 URL: https://issues.apache.org/jira/browse/KARAF-885
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.4, 3.0.0
>
>
> The shell StartBundle commands doesn't start all bundles if one failed:
>     protected void doExecute(List<Bundle> bundles) throws Exception {
>         for (Bundle bundle : bundles) {
>             bundle.start();
>         }
>     }
> The correct approach is to add a try/catch block around bundle.start() to display a warn
message in the console, but keep one starting the next bundles in the list.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message