带GWT的App Engine模块 [英] App Engine Modules with GWT

查看:137
本文介绍了带GWT的App Engine模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找关于如何设置Google App Engine项目的建议,该项目涉及多个模块,其中一个模块是GWT项目。我已阅读Google App Engine模块文档( https://developers.google。 com / appengine / docs / java / modules / ),并找到了一些关于Stackoverflow的帮助,例如这篇文章 GWT GAE应用引擎模块,使用appengine-skeleton-archetype 。然而,这涉及到很多部分,所以我很想得到一些建议。



平台考虑因素:





设计:



从概念上讲,我希望有一个系统可以执行计算密集型工作,可以由具有良好HTML接口的最终用户进行安排。我非常喜欢GWT和Google Plugin for Eclipse。我只是无法弄清楚如何使它与允许无限期限的模块一起工作(如 https://developers.google.com/appengine/docs/java/modules/#Java_Instance_scaling_and_class



架构: GWT用户界面:我想使用Google Plugin for Eclipse来生成一个基本的GWT项目,因为我非常熟悉Google Plugin for Eclipse。 b
$ b <1> p>

1.a]我假设它需要自己的Eclipse项目,然后添加到EAR中,如 https://developers.google.com/appengine/docs/java/webtoolsplatform#enterprise_application



1.b]我认为它需要配置实例缩放自动,如此处所述 https://developers.google.com/appengine/docs/java/modules /#Java_Instance_scaling_and_class 。我需要指定Automatic吗?或者它假设为使用Google Plugin for Eclipse创建的GWT模块的Automatic?

2]基本扩展模块:我想要一个模块这是能够运行很长一段时间。在过去,我使用计划任务,并让作业以10分钟的间隔运行(计划任务允许的最大处理时间)。但根据 https://developers.google.com/appengine/docs/ java / modules /#Java_Instance_scaling_and_class 我可以使用Scaling Type = Basic的模块,这将允许无限的处理时间。我喜欢。

3]任务队列:我打算使用任务队列( https://developers.google.com/appengine/docs/java/taskqueue/ )让GWT用户界面模块告诉Basic Sc​​aling模块开始其工作。我从来没有使用任务队列,所以我会很感激验证,这应该工作。



总结我的问题:

我的设计理念是否可行?

B]我概述的架构可能是什么?



C]我如何实际生产所需的架构?我应该手动创建
https://developers.google中描述的所有配置文件.COM / AppEngine上/文档/ JAVA /模块/#Java_Application_hierarchy ?或者它应该由Maven,Web Tools Platform或Google Plugin for Eclipse生成?

更具体地说,我可以设置一个基本的EAR和WAR,根据 https://developers.google.com/appengine/docs/爪哇/ webtoolsplatform#creating_a_project 。我可以使用Google Plugin for Eclipse创建一个GWT项目。但是,我如何将GWT项目添加到EAR?我是否应该自己配置文件,还是应该由Maven,Web Tools Platform或Google Plugin for Eclipse完成?



更详细的答案可以提供更好的,因为我不具备所有这些技术的全面知识。我是一个将很酷的新事物粘合在一起以创建原型的人,所以我很少有时间深入学习技术。我最强的知识就是Google Plugin for Eclipse,所以我希望尽可能地利用它,并尽可能少地使用Maven和Web Tools Platform。



非常感谢你Stackoverflowers! :-P

Michael

解决方案

我收到以下来自Google云平台支持部门的Albert回答:

经过我的团队的深入研究并对其进行了深入的研究后,似乎通过Eclipse进行这项工作并不像我们' d想要它。虽然可以将模块设置为GWT应用程序,但不会将其识别为GWT,因此编译将无法通过右键单击上下文菜单获得。这是由于Eclipse插件无法识别模块,而企业应用程序项目类型的项目不允许将模块设置为GWT应用程序。



我会建议您使用公共问题跟踪器[1]打开一个功能请求,以便将来添加该功能。同时,最简单的解决方法是完成我们已经尝试过的工作,即在GWT应用程序中编写应用程序,然后在编译后将这些文件复制/粘贴到适当的目录中。另一种方法是在GWT目录上运行命令行工具[2]来编译项目。



我知道这些并不是完美的解决方案,但它们可能会对您有帮助。



由于这应该回答您的问题,因此我会继续设置案例在几天内关闭。我也想借此机会感谢你通过这件事情的耐心。我们很高兴与您合作。



此致


云平台支持 p>

[1] Google问题跟踪器插件: https://code.google.com/p/google-plugin-for-eclipse/
[2] GWT编译: http://www.gwtproject.org/doc/latest/RefCommandLineTools.html


I'm looking for advice on how to set up a Google App Engine project that involves multiple modules where one module a GWT project. I've read through Google App Engine module documentation (https://developers.google.com/appengine/docs/java/modules/) and found some help on Stackoverflow such as this post GWT GAE app engine modules using appengine-skeleton-archetype. However, it this involves a lot of pieces so I'd love to get some advice.

Platform considerations:

Design:

Conceptually, I'd like a system that does computationally intensive work that can be scheduled by an end user with nice HTML interface. I really like GWT and the Google Plugin for Eclipse. I just can't figure out how to make it work with modules which allow for indefinite deadlines (as described at https://developers.google.com/appengine/docs/java/modules/#Java_Instance_scaling_and_class)

Architecture:

1] GWT user interface: I'd like to use the Google Plugin for Eclipse to generate a basic GWT project because I'm very familiar with Google Plugin for Eclipse.

1.a] I assume it needs to be its own Eclipse project and then added to added to an EAR as described here https://developers.google.com/appengine/docs/java/webtoolsplatform#enterprise_application.

1.b] I assume it needs to be configured with instance scaling Automatic as described here https://developers.google.com/appengine/docs/java/modules/#Java_Instance_scaling_and_class. Do I have to specify Automatic or does it assume Automatic for a GWT module created with the Google Plugin for Eclipse?

2] Basic Scaling Module: I'd like a module that's capable of running for a long time. In the past I used scheduled tasks and let my jobs run in 10 min intervals (the maximum allowed processing time for scheduled tasks). But according to https://developers.google.com/appengine/docs/java/modules/#Java_Instance_scaling_and_class I can have a module with Scaling Type = Basic and that will allow for unlimited processing time. Me likey.

3] Task Queues: I plan to use Task Queues (https://developers.google.com/appengine/docs/java/taskqueue/) to get the GWT user interface module to tell the Basic Scaling Module to begin its work. I've never used Task Queues, so I'd appreciate validation that this should work.

To summarize my questions:

A] Is my design concept feasible?

B] Is the architecture I've outline possible?

C] How do I actually produce the desired architecture? Should I manually create all the config files described at https://developers.google.com/appengine/docs/java/modules/#Java_Application_hierarchy? Or is it supposed to be generated by Maven, Web Tools Platform, or Google Plugin for Eclipse?

D] More specifically, I'm able to set up a basic EAR and WAR as per https://developers.google.com/appengine/docs/java/webtoolsplatform#creating_a_project. And I'm able to create a GWT project using the Google Plugin for Eclipse. But how do I add that GWT project to the EAR? Am I supposed to configure the files myself or is it supposed to be done for me by Maven, Web Tools Platform, or Google Plugin for Eclipse?

The more detailed answer you can provide, the better, because I don't have comprehensive knowledge of all these technologies. I'm a guy who glues cool new things together to prototype stuff, so I rarely get the time to learn a technology in-depth. My strongest knowledge is Google Plugin for Eclipse so ideally I'd like to leverage that as much as possible and do as little as possible with Maven and the Web Tools Platform.

Thank you so much Stackoverflowers! :-P

Michael

解决方案

I've received the following answer from Albert at Google Cloud Platform Support:

After intensive research and reviewing this with my team, it seems like having this working through Eclipse isn't as easy as we'd want it. Albeit possible to set up a module as a GWT application, it will not be recognized as GWT and the compilation will therefore not be available via the right-click context menu. This is due to the Eclipse Plugin not recognizing modules, and the Enterprise Application Project type of project not allowing to set a module as a GWT application.

I would recommend that you open a feature request using the public issue tracker[1] for that functionality to be added in the future. In the meantime, the easiest workaround would be to do exactly what we have tried, which is to code the application in a GWT app, and then copy/paste the files into the appropriate directories after compilation. Another alternative would be to run the command line tool[2] on the GWT directory to compile the project.

I know that these aren't perfect solutions, but they may be helpful to you.

As this should answer your question, I'll go ahead and set the case to close in a few days. I'd also like to take the opportunity to thank you for all your patience through this matter. It's been a pleasure working with you.

Sincerely,

Albert Cloud Platform Support

[1] Google Plugin for Eclipse Issue Tracker: https://code.google.com/p/google-plugin-for-eclipse/ [2] GWT Compilation: http://www.gwtproject.org/doc/latest/RefCommandLineTools.html

这篇关于带GWT的App Engine模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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