Some more testing on the code that I sent earlier this week (see “Question on streaming via s9api”)
revealed the fact that it leaves one thread waiting, if the iteration loop exits prematurely.
 
This can be reproduced like this:
 
           Iterator<XdmItem> xdmItemIterator = xqueryEvaluator.iterator();          
           xdmItemIterator.next();
           xqueryEvaluator.close();
 
I was hoping to free resources associated to the iteration by calling xqueryEvaluator.close(), but
no success. Is there a way to get rid of that thread?
 
Thanks
Gunther
 

Software AG – Sitz/Registered office: Uhlandstraße 12, 64297 Darmstadt, Germany – Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Dr. Wolfram Jost, Arnd Zinnhardt; - Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Dr. Andreas Bereczky - http://www.softwareag.com