Hello,
previously:
Cam Bazz wrote:
> Hello,
>
> Now my comet application has matured a bit, I would like to add functions
> of throttling. So far, I used an EJB Timer bean to notify the comet context,
> pushing data to every client at the same time.
>
> I successfully used context.getCometHandlers().size() to get the number of
> active users at a given time. (although, it does not work properly in IE,
> but it is probably unrelated - IE will get comet response immediately when
> you issue a get request to the servlet, it wont wait until notification is
> sent)
>
I think you can workaround that issue by sending "junk" comments at the
beginning of the suspend operation (when you call addCometHandler())
this is where you add the cometHandler from the servlet right? I added some
junk to the resp.getPrintWriter().print("start") and modified my js to
compensate for the extra start.
the thing is IE gets in an infinite loop. the second it sends the get
request, it receives success, in otherwords, it will not long poll.
Any ideas?
Best,
C.B.