On 2/22/10 7:48 AM, Craig Dickson wrote:
Thanks, that solved it apparently.

For some explanation, the two-pass approach deals with dependencies among the bundles. If you install and start as you go, then depending on ordering the start will fail if dependent bundles have not been installed first. By doing it in two passes, you ensure that all bundles are installed before you try to resolve dependencies.

-> richard

On Feb 21, 2010, at 10:58 AM, Marcel Offermans wrote:

On Feb 21, 2010, at 19:16 , Craig Dickson wrote:

       for (String bundleLocation : bundleLocations) {
           try {
               Bundle b = context.installBundle("file:" + bundleLocation);
               b.start();
           } catch (BundleException ex) {
               Logger.getLogger(Activator.class.getName()).log(Level.SEVERE, 
null, ex);
           }
Split this up into 2 loops: first install all bundles and then in a second 
pass, start them all.

Greetings, Marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to