On Monday 26 February 2007 16:37, [EMAIL PROTECTED] wrote: > + tRetval = ( IHosts ) tracker.waitForService( 5000 );
Hi, BJ recently pointed out that one needs to be careful about this, since if this happens during the start up sequence and what we are waiting for always statrs later, then we will hang the start-up thread every time for no purpose whatsoever. It is hard for me to say when the code in question is happening, so Gavin, can you ensure that this is safe. Another quiet useful pattern is to let a subclass of the ServiceTracker implement the service it is tracking. Also, place that implementation into the service's API bundle for simplified use by the clients. This means that the clever logic needed for common cases (startup, reload, well behaving shutdowns) are done by those who understand the service. Perhaps something to consider for RadMan. Cheers Niclas _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
