Question

I've got a running equinox osgi framework with a bunch of started bundles. Now i update a bundle using the osgi console via 'update . (or use provided method: bundle.update(url));

Everything works perfectly... but if i completly restart the osgi framework the previously updated bundle is in the original state again (as it was before the update).

I'm using the update.configurator of eclipse to search all bundles in the plugins directory and install them but i thought it recognizes if a bundle had been updated.

Can somebody drop me a hint what i'm missing?

thanks, Michael Mangeng

Was it helpful?

Solution

How are you starting Equinox? Are you starting with -clean (which would wipe out any updates)?

Note that the 'udpate' just updates the in-memory running copy, rather than changing any bits on the original JAR on disk. If you're starting up equinox and passing in the old bundle (but not the new one) then it might come back as the old state.

P2 gets in the way somewhat in assuming that once you've cut the bits of a bundle, then it remains the same thereafter - in other words, P2 effectively breaks doing bundle.update() in the first place. However, you probably should manage the bits on disk so that even if someone does do a -clean, you get the right data.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top