On Wed, Aug 20, 2008 at 6:48 PM, Richard S. Hall <[EMAIL PROTECTED]> wrote: > Your issue here is that your service package did not change version, thus > the difference between the two impls is not seen at the service level since > both implement Service 1.0. > > This is how it should be, since the client cannot say it wants impl 1.1, > because then it would fail if impl 1.1 was not available. Besides, two > version numbers between two implementations of the same service do not have > any meaning if the impls come from different vendors, so impl version is not > something that leads to easy comparisons. > > However, if you want to specify this you have to rely on OSGi service > ordering, which is based on service rank and bundle ID. In your case, since > you have implemented both version, you can give newer versions of your > service higher service rankings so that it will always prefer the newest > version.
Additionally, IF you indeed know that you want a particular (or type of) IMPL, then you can use service properties and construct lookup/tracking expressions accordingly. Cheers Niclas _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
