简体   繁体   English

将 Vaadin 与谷歌应用引擎一起使用

[英]Use Vaadin with google app engine

I'm just wondering if its possible to have a Vaadin project working under google app engine?我只是想知道是否有可能让 Vaadin 项目在谷歌应用引擎下工作? If it is then please refer me to any kind of documentation or "how-to".如果是的话,请让我参考任何类型的文档或“操作方法”。

The Vaadin wiki contains a step-by-step process. Vaadin wiki包含一个逐步的过程。

There is an ticket about supporting Vaadin by GAE: http://dev.vaadin.com/ticket/2835有一张GAE支持Vaadin的ticket: http://dev.vaadin.com/ticket/2835

I've tried it - and id works.我已经尝试过了- id 有效。 First of all you need to enable sessions:首先,您需要启用会话:

<sessions-enabled>true</sessions-enabled>

and use GAEApplicationServlet instead of default vaadin's.并使用GAEApplicationServlet而不是默认的 vaadin。

Second: make sure that all you domain objects, are serializable (i bet it's no problem, btw)第二:确保所有域对象都是可序列化的(我打赌没问题,顺便说一句)

And third: move all static files (theme css and images) from vaadin's jar to your webapp folder第三:将所有 static 文件(主题 css 和图像)从 vaadin 的 jar 移动到您的 webapp 文件夹

Yes, it is possible .是的,这是可能的
To start with something easy, read the tutorial to create a simple address book and download the project for Google App Engine here .要从简单的开始,请阅读教程以创建一个简单的地址簿并在此处下载 Google App Engine 项目。

The good news is that it works.好消息是它有效。
There are only a few things to consider, all described in http://vaadin.com/book/-/page/advanced.gae.html .只有几件事需要考虑,所有内容都在http://vaadin.com/book/-/page/advanced.gae.html中描述。 When it comes to persistence, things get a bit more tricky.当谈到持久性时,事情变得有点棘手。 You might have a look at http://code.google.com/p/instant-webapp/ where most things have been adressed and more or less solved.您可能会看看http://code.google.com/p/instant-webapp/大部分事情都已解决并或多或少得到解决。

A step by step tutorial for deploying your vaadin application to GAE can be found by following this link .可以通过以下链接找到将 vaadin 应用程序部署到 GAE 的分步教程。

Yes you can use Vaadin donot know of specific gae\vaadin doc but it's not different to running vaadin on your machine it's just GWT based rich ajax liberary是的,您可以使用 Vaadin 不知道特定的 gae\vaadin 文档,但这与在您的机器上运行 vaadin 没有什么不同,它只是基于 GWT 的丰富 ajax 库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM