views:

37

answers:

3

Are there any mechanisms for real time ive data transfer-delivery like socketsa or something like that? keep-alive http connections? Are there any tutorials on this topic of realtime data transfer from java app to your client and backwords?

+1  A: 

The only main type of communication Google App Engine allows is through the HTTP interface. This means that you can't initiate outbound communications from your GAE application unless your desktop application is essentially a web-server.

Keep-alive communication won't work very well either because any request lasting over 30 seconds is automatically killed by GAE.

The best alternative is to have your application poll your GAE app for data. This is far from ideal, but is really all that's available on GAE.

You may want a different cloud service if real-time transfers and TCP connections are required. At least until they get it implemented in GAE.

Ben S
Not true: XMPP and SMTP are also supported.
Nick Johnson
+1  A: 

Currently no, but they are planning to provide this at an near future release. See http://code.google.com/p/googleappengine/issues/detail?id=377 for example.

They also had demonstrated this at Google IO 2010, but not released yet.

splix
Thanks for bringing this up. I've starred the issue. According to the roadmap (http://code.google.com/appengine/docs/roadmap.html) Server-push should be implemented sometime in the next 6 months.
Ben S
A: 

Look at XMPP

Manjoor