On Mon, Aug 31, 2009 at 2:32 AM, Peter Kriens <[email protected]>wrote:

> Why not just the service object in the callback, addingService provides it
> to you?
>
I want to stay up to date on the highest ranked service.  That service in
addingService is the one currently being added, which is yet not reflected
in ServiceTracker#getService().

Thanks BJ and AZ for the tips.  BundleContext#getServiceReference returns
the highest ranked service during the callbacks so I can use that to get
what I need. But then I have still run into a bug/feature that
BundleContext#getServiceReference is not the highest ranked service in cases
where a service is modified to increase its ranking.  I have already posted
on the Equinox list (
http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg06711.html)
about this, but maybe this mailing list is the more appropriate place to
discuss it?

-Will
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to