Just look at http://docs.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html#getServiceReference(java.lang.Class)
"If multiple such services exist, the service with the highest ranking (as specified in its Constants.SERVICE_RANKING property) is returned. If there is a tie in ranking, the service with the lowest service ID (as specified in its Constants.SERVICE_ID property); that is, the service that was registered first is returned." Service IDs are always unique, so this mechanism will always establish one winner! Konrad > On 11. May 2022, at 17:29, Bertrand Delacretaz <bdelacre...@apache.org> wrote: > > Hi, > > Le mer. 11 mai 2022 à 17:23, Carsten Ziegeler <cziege...@apache.org> a écrit : >> ...Service ranking is more predictable than just using the "first"... > > I agree, but what if two servlets have the exact same service > parameters including service ranking? > > That's what I think we should reject. > > -Bertrand