GWT + GAE python:COMET&框架RPC [英] GWT + GAE python: frameworks for COMET & RPC

查看:131
本文介绍了GWT + GAE python:COMET&框架RPC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我想在客户端使用Google GWT,并在服务器端使用Google AppEngine Python。此外,我希望能够使用RPC调用服务器以及执行基于COMET的交换。



现有框架的选项有哪些?

解决方案

我通过googlinggwt python找到了这个: http://code.google.com/p/python-gwt-rpc/ - 由于App Engine现在支持Java,因此它似乎不受支持。

这个,用google搜索gwt comet: http://code.google.com/p/rocket-gwt - 这应该在客户端工作,以便将GET挂到服务器上,这可以用Python编写。 p>

但是我不得不说,如果你只是用Java编写服务器端,这样做会容易得多。 GWT和Java是为彼此制作的,它们是属于一个整体的,除非你对使用Java编写服务器有强烈的厌恶感,否则你应该考虑它。



你可以共同解决一些解决方案,使GWT和Python一起工作,但它可能很容易在即将到来的GWT版本中崩溃,这意味着从长远来看为您提供更多的工作。



只是用Java编写服务器。


Let's say I want to use Google GWT on the client side and Google AppEngine Python on the server side. Furthermore, I want to be able to use RPC calls to the server as well as performing COMET based exchanges.

What are my options in term of existing frameworks?

解决方案

I found this by googling "gwt python": http://code.google.com/p/python-gwt-rpc/ -- it appears to be unsupported, since App Engine supports Java now.

And this, by googling "gwt comet": http://code.google.com/p/rocket-gwt -- which should work on your client-side to make hanging GETs to the server, which conceivably could be written in Python.

But I have to say, it's going to be a lot easier to do this if you just write the server-side in Java. GWT and Java were made for eachother, they belong together, and unless you've got some strong aversion to writing the server in Java, you should really consider it.

You could hack some solution together to make GWT and Python work together, but it could easily break in upcoming versions of GWT, meaning more work for you in the long run.

Just write the server in Java.

这篇关于GWT + GAE python:COMET&框架RPC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆