karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (Work started) (JIRA) <j...@apache.org>
Subject [jira] [Work started] (KARAF-885) StartBundle doesn't deploy all bundles if one failed
Date Tue, 27 Sep 2011 11:50:18 GMT

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

Work on KARAF-885 started by Jean-Baptiste Onofré.

> 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