users@grizzly.java.net

comet handler interrupted

From: Cam Bazz <cambazz_at_gmail.com>
Date: Wed, 2 Jul 2008 05:00:49 +0300

Hello,

My cometized app is almost working. I made a jquery loop, with a long
timeout, and upon success the method recalls itself.

in the comet-counter example both onEvent and onInterrupt methods had the
same code (incrementing the counter)

previously, I thought the onInterrupt method was for when something went
wrong so the client could be notified, and clean the resources.

what happens is, onEvent and onInterrupt is called in an alternating
fashion,

so first it fires onEvent, then onInterrupt, then onEvent again and so on.

I was returning an interrupted flag to my client if in case something went
wrong.

Any ideas?

Best,