karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Created] (KARAF-885) StartBundle doesn't deploy all bundles if one failed
Date Wed, 21 Sep 2011 09:14:08 GMT
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) {

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.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message