简体   繁体   English

适用于Google App Engine的可分发应用程序

[英]Distributable application for Google App Engine

I have an idea of web-application. 我对网络应用有一个想法。
As an option I'm considering Java+Appengine as technology, but in future I will need possibility to create instances of application without using GAE. 作为一种选择,我正在考虑使用Java+Appengine作为技术,但是将来我需要在不使用GAE的情况下创建应用程序实例。

So, I have a questions: 所以,我有一个问题:
is it possible to migrate application from GAE to some application server (Tomcat for example)? 是否可以将应用程序从GAE迁移到某个应用程序服务器(例如Tomcat)?
What I need to take into account from that start for easier migration? 从开始时我需要考虑哪些更容易的迁移?
Or In that case it is easier to create application not for GAE? 或者在这种情况下,创建应用程序不是为GAE更容易?

Thank you! 谢谢!

如果您写入Google提供的servlet API的子集,那么是。

Use best practice of J2EE development: 1. Separate layers in backend: DAO for data access, Service for bussiness logic. 使用J2EE开发的最佳实践:1。在后端分离层:DAO用于数据访问,服务用于业务逻辑。 About data model - in any case you'll have to change it when move from AppEngine to Tomcat. 关于数据模型 - 在任何情况下,从AppEngine迁移到Tomcat时都必须更改它。 Maybe JPA annotations will help you. 也许JPA注释会帮助你。 You can use it with other DB. 您可以将其与其他数据库一起使用。 But if you nead scalability - you have to use NoSQL. 但如果你有可扩展性 - 你必须使用NoSQL。 2. Use MVC for frontend with Spring for example 2.例如,使用MVC作为前端的Spring

I think you'll have to rewrite your DAO layer and data model. 我想你必须重写你的DAO层和数据模型。 So it is take some time. 所以需要一些时间。

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

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