osgi - Installing a fragment requires a refresh on the host, how can this be avoided? -


I have two bundles: Bundle A and Bundle B, which is configured as a piece of bundle: Fragment -Host:

Whenever I install Bundle B, it fails to start (has been installed) and so it is necessary to attach bundle A.

At this point when I look at the condition of Bundle A, I think that it still recognizes' Bundle B as its piece.

If I refresh the bundle, then this problem solves the problem - Bundle B is switched to the resolution and is able to attach it to the bundle, Bundle A will be able to attach the bundle B to its pieces

My question is how can this refresh be avoided, such as Bundle B, it should be attached to its host soon as it is already active.

Thank you.

You can not do this without refreshing, and it is also in OSGI glasses - right one Attach the slice bundle, Resolve a host from the installation to the host bundle. I is required 4.3 See the OSGI Core Specification Section 3.14.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -