File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Live connections for Instant Messenger Application

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I have been checking your Instant Messenger Application.
As I noted, you are using GWT-RPC.
What if you want to use HTTP live connections (like GMail built in messenger)?
How to do this in GWT?
Thanks.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(john can you check to see if you got my email sent to your hotmail account?)
 
Ryan Dewsbury
author
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I not sure what you mean by HTTP live connections.

One restriction with HTTP is that every response needs a matching request. The server can't just send data to the client when necessary. This is sometimes called server push or HTTP events. I'll assume this is what you're referring to.

The instant messenger application in chapter 9 tackles the issue of server push with Ajax applications. It looks at polling(bad), hanging HTTP calls(better), and then looks at solutions with advanced IO on Tomcat and Continuations on Jetty where hanging waits don't hang threads as well, thereby improving performance dramatically(best).

I hope this answers your question. By using these techniques you can get server push like you see in GMail.
 
Ryan Dewsbury
author
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should also click on the GWT poker link in my signature. It's completely GWT and uses a lot of server push.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you please Mr. David check your PM?
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I not sure what you mean by HTTP live connections.

We were talking here in the ranch (not that old topic), that GMail's built in messenger employs HTTP live connections which makes it very performant.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure where you are getting HTTP Live connections from. If I type it into Google, all I am getting is this thread.

Is that what you are calling COMET or polling?

Eric
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eeee, sorry.
It is HTTP requests with Keep-Alive header.
I'm really sorry.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic