Hi Sana,

So the OBR feature resolver uses Felix' OBR support internally, so
that's why you have the extra Felix bundle there. In a nutshell, when
the OBR resolver is active:
- all bundles without dependency="true" will just get installed as usual
- all bundles with dependency="true" will only be installed if they
are needed to to satisfy a missing requirement

More concretely, that means a bundle marked as a dependency will not
get installed if another bundle in the container already provides the
same/compatible packages and services. This is the main reason we have
this feature enabled: to avoid installing multiple versions of the
same bundle when we pull features from different sources together
(CXF, Camel, ActiveMQ, ...). The OBR resolution check with only work
for a single feature at once though.

That means that if you mark a bundle as a dependency in a feature,
there should be another bundle in the same feature actually
importing/requiring a service or package. Could that be the case here
(bundle2 not requiring any packages/services from bundle1)? Could you
provide us with the output for osgi:headers for both bundles?


Regards,

Gert
Regards,

Gert Vanthienen


On Thu, Dec 4, 2014 at 5:36 PM, Sana <[email protected]> wrote:
> Hi Gert,
>
> It was a typo I have resolver="(obr)" with "()" in all my feature file.
>
> feature xyz looks like this. It works when resolver="(obr)" is removed.
>
> <feature name=&quot;xyz&quot; version=&lt;> resolver="(obr)">
>   <bundle dependency=true>mvn:gruopID/artifactId/version/bundle1</bundle>
>   <bundle>mvn:gruopID/artifactId/version/bundle2</bundle>
> </feature>
>
> What I thought was the bundle org.apache.felix.bundlerepository which in the
> startup properties file is required for obr resolver to work to resolve the
> dependencies but it is happening otherwise. It works when the obr bundle is
> uninstalled. What does this bundle org.apache.felix.bundlerepository do?
> What is its relation with resolver="(obr)"?
>
> Thanks!
>
>
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/obr-feature-tp5721909p5721932.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to