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