users@grizzly.java.net

Re: IE problem with comet

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Fri, 11 Jul 2008 10:48:21 -0400

Salut,

Cam Bazz wrote:
> 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.

Hum...Can you look at what Jim describe here:

http://weblogs.java.net/blog/driscoll/archive/2008/05/solving_the_com_1.html

I know it works with IE. Mainly, you usually write some comments (<!--
----!>.

Let me know the result.

A+

-- Jeanfrancois



>
> Any ideas?
>
> Best,
>
> C.B.