> I'm working on a search commands where the result from a fast search is > needed to run a XML/HTTP search (to build the correct URL). > AbstractSearchCommand has got a protected function > getSearchResult(String id, DataModel datamodel) that seems to be for > exactly this kind of (ab)use, is it garantueed not to loop forever? (If > the command we're waiting for never returns any results)
It is guaranteed not to loop forever. Your command (not the command whose results you wish) will eventually time out and the call to checkForCancellation() will throw a SearchCommandException. (Many of the timeouts are disabled when the root log4j Logger has DEBUG enabled, so that debuggers can be attached in development environments). Even in a potential stalelock situation both of the commands will time out, saving the day. ~mck -- "One of the easiest ways to avoid many common problems is to stop using Microsoft software." Mark Ward, BBC | www.semb.wever.org | www.sesat.no | www.sesam.no | _______________________________________________ Kernel-development mailing list [email protected] http://sesat.no/mailman/listinfo/kernel-development
