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

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

问题描述

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

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?

推荐答案

我通过谷歌搜索gwt python"找到了这个:http://code.google.com/p/python-gwt-rpc/ -- 它似乎不受支持,因为 App Engine 现在支持 Java.

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.

这个,通过谷歌搜索gwt comet":http://code.google.com/p/rocket-gwt -- 它应该在您的客户端工作,以便将 GET 挂到服务器上,可以想象,这可以用 Python 编写.

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.

但我不得不说,如果您只用 Java 编写服务器端,那么这样做会容易得多.GWT 和 Java 是为彼此而生的,它们属于一起,除非您对用 Java 编写服务器有强烈的反感,否则您应该真正考虑一下.

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.

你可以一起破解一些解决方案,让 GWT 和 Python 一起工作,但它很容易在即将发布的 GWT 版本中崩溃,从长远来看,这意味着你有更多的工作.

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.

只需用 Java 编写服务器即可.

Just write the server in Java.

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

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