java - 我们可以在不做任何更改的情况下将 Java EE war 文件部署到 Google App Engine 吗?

标签 java google-app-engine google-cloud-platform

您好,我有一个在 tomcat 7 和 mysql 5.5 上运行的 jee 应用程序(war 文件)。 我可以在不做任何修改的情况下在 google-App-Engine 上运行相同的 war 文件吗? 如果是怎么办?

最佳答案

不,你不能。 App Engine 至少需要名为 appengine-web.xml 的配置文件。

In addition to the web.xml deployment descriptor, an App Engine Java application uses a configuration file, named appengine-web.xml, to specify the app's registered application ID and the version identifier of the latest code, and to identify which files in the app's WAR are static files (like images) and which are resource files used by the application.

除此之外,这取决于您的应用程序要求。 App Engine 提供两种环境 - sandboxedManeged VMs .如果是沙盒环境,还有其他 restrictions你必须考虑:

  • 对文件系统的只读权限
  • 60s 请求限制(在自动缩放类型的情况下)
  • 32 MB 请求/响应大小限制
  • JRE 类的子集(JRE 类白名单)
  • 线程不能“长寿”于创建它们的请求
  • 每个请求最多 50 个并发线程

关于java - 我们可以在不做任何更改的情况下将 Java EE war 文件部署到 Google App Engine 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35985734/

相关文章:

python - 如何在 Python webapp (Google App Engine) 中导入 gflags?

java - 在 Swing 应用程序中显示 HTML 表单并与之交互

python - 在 Google App Engine 中对 IntegerProperty 进行排序时出现问题

java - 在运行时更改 Maven 插件配置

java - 开始使用 Google App Engine Java - 从哪个框架开始?

google-compute-engine - 将 Cloud Compute VM 迁移到单独的 Google Cloud 帐户

go - 如何使用 Go 1.12 运行本地 GAE 模拟器?

python-3.x - 从桶谷歌云加载数据

java - SendRedirect "preventing resubmission"保证?

java - 从用脚本编写的网页将数据导入到 Excel