Elvy wrote:
> 
> Hi there,
> 
> Assume some services are already registered and, at a certain moment, a
> new ServiceTracker in installed.
> 
> One could expect that:
>  - either the services already available are notified so we get
> synchronized with the current system state
>  - or only new registrations are notified
> 
> I just discovered that Felix informs trackers about all the already
> available services. This seems very good to me, but I was wondering
> whether or not it was part of OSGi specification (didn't find it...).
> 
> Thanks for the info and congratulations
> 

I had a similar question. I am relying on the behavior of being informed
about the services that are already available, but it I am relying on it too
early in the process. That is to say, sometimes I ask and there are three
services; other times, two or four. 

If I add some debugging statements, I can see that ServiceEvents are still
being received at the same time that I am asking for services.

I am wondering if there is any way to wait for or ask if the registration of
initially available services is complete... for my program, the
bundle/services state is static after initialization.
-- 
View this message in context: 
http://www.nabble.com/ServiceTracker-and-already-registered-services-tp17619421p17741282.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to