timactive
timactive

Reputation: 827

unable to update bundle when update core whith karaf

I meet a big concern, I have several bundle.

As

bundleui needs bundlecore, bundleaddoncore needs bundlecore

When I update bundlecore with karaf, I noticed that bundleui and bundleaddoncore still using the old version? I must restart Karaf? Is this normal? if so what is the right way to recharge the dependent bundle?

Upvotes: 0

Views: 216

Answers (1)

Achim Nierbeck
Achim Nierbeck

Reputation: 5285

No, you don't need to restart Karaf this is typical for OSGi. The Other bundles still use the old services or reference the "old" classes. After a bundle update you need to refresh the depending bundles, only with this your bundles do get resolved again and therefore use the new bundle. To do so you either call refresh or just refresh in the Karaf console.

Upvotes: 1

Related Questions