Hello, I'm using Felix/SCR for a GUI application. GUI clients want to know what services have registered with a certain interface. However, I get non-deterministic behavior when GUI clients make this query (which occurs right after bundles have been started): i.e., sometimes, there will be 2 services registered, other times 3 or 4. With some debugging, I can see that ServiceEvents are being fired asynchronously as these services are registered, and that occurs at the same time that the clients make their query on a separate thread, leading to the non-determinism.
I get the impression reading the forum that my GUI clients should instead be coded to react to/listen for new services coming on-line, rather than making a query up-front... but I was hoping to insulate my GUI code from this, because the GUI, as it currently stands, should be static once everything is initialized. So what I'd like is the following: 1. Bundles installed, started 2. Services registered 3. Clients ask for list of services, get deterministic answer Is this possible, even if not recommended? Thanks, Jared -- View this message in context: http://www.nabble.com/Wait-for-services-to-be-fully-registered--tp17741822p17741822.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]

