[kf-users] ServiceTracker
Gunnar Ekolin
gunnar at ekolin.se
Fri Apr 1 14:21:47 CEST 2011
Hi Paul,
I have now backported the fixes for this problem from the OSGi 4.2
(KF-3) version of the service tracker. Almost as the one you propose
below.
The fix was made on the kf_2_support branch,
https://www.knopflerfish.org/svn/knopflerfish.org/branches/kf_2_support
revision 3442.
BR,
\GE
> If I am correct and this is a problem then a simple fix would be for KF2.3.3
> (not tested):
>
> In ServiceTracker.close() method after...
>
> tracked.close()
>
> ...add..
>
> synchronized(tracked)
> {
> notifyAll();
> }
>
>
> In waitForService method, could add some useful debug:
>
>
> if (tracked.closed)
> {
> if (DEBUG) {
> System.out.println("ServiceTracker.waitForService returning
> null since ServiceTracker closed");
> }
> return null; // service tracker closed while waiting for service
> }
>
>
More information about the Knopflerfish-users
mailing list