users@grizzly.java.net

Re: [Jean-Francois Arcand's Blog] New Comment Posted to 'Applying Asynchronous Web: The slides enter the Atmosphere...'

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Sun, 16 Nov 2008 22:32:04 -0500

Salut,

king pong siu wrote:
> Bonjour JF....
>
> i ve a new question :
>
> In the long polling scheme,
>
> client server
>
> | |
> | ------ request ----> |
> | |
> | |
> | | <-- updated data which imply the response
> | <---- response ----- |
> | | <-- updated data which will not sent to
> the client
> | ------ request ----> |
>
> If there is an updated data ( a message for the user for example) just
> after the user got the response but before the client of the user send
> another request ...the user won t be informed of this update ..what
> solution will u propose to resolve this issue ?

Hum...yes the client will be updated as as soon as it reconnect, the
data will pushed back to the client. Did I misunderstood you?

>
> Merci d'avance,


Au plaisir!

-- Jeanfrancois

>
> KIM
>
>
>
>
>
>
> On 29/10/2008, *Jeanfrancois Arcand* <Jeanfrancois.Arcand_at_sun.com
> <mailto:Jeanfrancois.Arcand_at_sun.com>> wrote:
>
> Salut,
>
> [forward from the blog]
>
> foo_at_bar.com <mailto:foo_at_bar.com> wrote:
>
> A new comment has been posted on your blog Jean-Francois
> Arcand&#39;s Blog, on entry #10653 (Applying Asynchronous Web:
> The slides enter the Atmosphere...).
>
>
> View this comment:
> <http://weblogs.java.net/blog/jfarcand/archive/2008/10/applying_asynch.html>
> Edit this comment:
> <http://weblogs.java.net/mt/mt.cgi?__mode=view&blog_id=258&_type=comment&id=51805
> <http://weblogs.java.net/mt/mt.cgi?__mode=view&blog_id=258&_type=comment&id=51805>>
>
> IP Address: 64.125.132.43 <http://64.125.132.43/>
> Name: pasjam007
> Email Address: foo_at_bar.com <mailto:foo_at_bar.com>
> URL: Comments:
>
> Bonjour,
> Very nice and clear article!
> i ve seen u ve written a lots..THX!
>
>
> Merci!
>
> I ve fund out an article about a simple chatroom using reverse
> ajax in DWR2 :
> http://today.java.net/pub/a/today/2007/03/22/developing-applications-using-reverse-ajax.html
> that i succeeded to add to my tomcat5.5. So since tomcat 5.5
> doesn t support asynchronous request processing , all requests
> will be blocked on a thread?
>
>
> Exactly.
>
>
> if i switch to tomcat 6, it will write data back on comming
> connections asynchronously and give better performance?
>
>
> I'm not sure DWR support Tomcat 6 AIO. Might want to check with the
> DWR project.
>
>
> Or Dwr2 can handle the asynchronous request/response processing ?
>
>
> I doubt. I've worked on DWR a while ago to add Grizzly Comet
> support, and at that time DWR was blocking on thread for Tomcat and
> GlassFish.
>
> A+
>
> -- Jeanfrancois
>
>
> Merci d'avance.
>
>
>
>
>
> --
> Yours sincerely,
>
> King Pong SIU,
> +852 6222 2910