Presentation: Interactive Websites with Comet and DWR
Watch: Interactive Websites with Comet and DWR (1 hour)
Comet opens a network connection and keeps it open indefinitely to allow the server to respond when it needs to. The server seems to be pushing data to the browser, but in fact it’s a long polled connection. This approach allows web servers to update pages when new information is available, and avoids the process of creating a new connection every time the browser wants to. Comet changes the HTTP request-response communication model into a server push one being useful for interactive pages. There are major web sites and applications using Comet: GMail, GDocs, Meebo, Yahoo! Mail, Jot and others.
Walker presents the benefits of using Comet and the difficulties they encountered in creating it. He also talks about DWR using code snippets. DWR allows “web browsers to securely call into Java code almost as if it was running locally.” DWR can also “marshal virtually any data including collections, POJOs, XML and binary data like images and PDF files.”
Siva Prasanna Kumar
<user-agent match-on="MSIE" kickstart-bytes="2048" max-streaming-connections-per-session="3"/>
<user-agent match-on="Firefox" kickstart-bytes="2048" max-streaming-connections-per-session="3"/>
Do we need to do something similar in DWR also? My previous experience was with DWR 1.0, it was great but had some browser specific behaviors (had some issues with Mozilla, use to work great on IE). Never got a chance to look in to DWR 2.x, I think I will directly try DWR 3.0, when is it expected to release?
I've another idea
We face a lot of challenges in implmenting it but we succefully overcome them all and the idea is running perfectly now.
we succfuly overcome the problem of this max-streaming-connections-per-session="3"
Now no limits in using comet
I'm preparing to post our idea soon
Comet on the rise?
Craig Motlin Sep 01, 2014