According to the OSGI specification, a fragment bundle in OSGI can have multiple hosts. But in apache karaf it does not seem to work.
I have tried the following.
Fragment-Host: default_host;bundle-version=1.0.0,Second_host;bundle-version=1.0.0
According to the OSGI specification, a fragment bundle in OSGI can have multiple hosts. But in apache karaf it does not seem to work.
I have tried the following.
Fragment-Host: default_host;bundle-version=1.0.0,Second_host;bundle-version=1.0.0
Copyright © 2021 Jogjafile Inc.
You are right that a fragment can have multiple hosts according to the specification. But it seems to be limited to different versions of bundles with the same symbolic name:
The grammar for
Fragment-Hostis defined asand by using a version range, you technically define multiple host:
It doesn't seem to be possible to attach a fragment to host bundles with different names like in your example.