Hi,
please have a look at the attached example...
Am 02.03.2012 um 10:12 schrieb truc.cam@emotive.de:
Hi, I followed your instruction. But it still skipped some number.
----- Forwarded message from Truong An Nguyen ngtruongan@gmail.com ----- Date: Fri, 2 Mar 2012 09:14:57 +0100 From: Truong An Nguyen ngtruongan@gmail.com Subject: Fwd: [basex-talk] Ask about EVENT To: truc.cam@emotive.de
---------- Forwarded message ---------- From: Andreas Weiler andreas.weiler@uni-konstanz.de Date: Fri, Mar 2, 2012 at 9:09 AM Subject: Re: [basex-talk] Ask about EVENT To: Truong An Nguyen ngtruongan@gmail.com Cc: basex-talk@mailman.uni-konstanz.de
Hi,
the problem is that you call the session2.close() method before all items are printed out in the for loop in the notify method of the notifier. This closes the session2 before all items from the event are received.
Just implement a mechanism, which is waiting for all items of the event before closing the session2.
-- Andreas
Am 02.03.2012 um 08:51 schrieb Truong An Nguyen:
Dear BaseX team, I'd like to ask you why my class not run correctly. I'm using EVENT to
notify changes from xquery. It must print numbers from 1 to 10, 50 times for each. Why does it skip some numbers in a random manner? How can I do to correct it?
Please see my attachment. Thanks in advance.
<mainclass.java>_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
----- End forwarded message -----
<mainclass.java>_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk