简体   繁体   English

我们可以将Java EE war文件部署到Google App Engine而不进行任何更改吗?

[英]Can we deploy a Java EE war file to Google App Engine without any changes?

Hi I have a jee application(war file) running on tomcat 7 and mysql 5.5. 嗨我有一个在tomcat 7和mysql 5.5上运行的jee应用程序(war文件)。 Can i run the same war file on google-App-Engine without any modifications? 我可以在google-App-Engine上运行相同的war文件而不做任何修改吗? If so how? 如果是这样的话?

No, you cannot. 你不能。 At minimum App Engine requires configuration file named appengine-web.xml. 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. 除了web.xml部署描述符之外,App Engine Java应用程序还使用名为appengine-web.xml的配置文件来指定应用程序的注册应用程序ID和最新代码的版本标识符,并识别其中的哪些文件。 app的WAR是静态文件(如图像),它们是应用程序使用的资源文件。

Beside that it depends on your application requirements. 除此之外,它取决于您的应用要求。 App Engine offers two environments - sandboxed and Maneged VMs . App Engine提供两种环境 - 沙盒Maneged VM In case of sandboxed environment there are other restrictions you have to take into account: 如果是沙盒环境,您还必须考虑其他限制

  • Read-only access to the filesystem 对文件系统的只读访问权限
  • 60s request limit (in case of automatic scaling type) 60s请求限制(在自动缩放类型的情况下)
  • 32 MB request/response size limit 32 MB请求/响应大小限制
  • Subset of the JRE classes (The JRE Class White List) JRE类的子集(JRE类白名单)
  • Threads can't “outlive” the request that creates them 线程不能“比”创建它们的请求“寿命”
  • Max 50 concurrent threads per request 每个请求最多50个并发线程

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

相关问题 通过使用特定的jar来创建Java类来在Google App Engine中部署War文件 - Deploying war file in google app engine by creating a java class using the jar specific to deploy it 您可以将Java EE框架与Google App Engine一起使用吗? - Can you use Java EE frameworks with the Google App Engine? 如何在不创建War文件的情况下部署Java Web App到AWS? - How to deploy java web app without creating war file to AWS? 仅部署Java文件而不部署WAR - Deploy only java file without deploying the WAR Google App Engine灵活部署WAR或JAR应用程序? - Google App Engine Flexible-Deploy WAR or JAR application? 我们可以为Google App Engine中的servlet提供Java客户端吗? - Can we have a java client for a servlet in Google App Engine? Java App for Java和Java EE之间的核心区别是什么? - What is core difference between Java for Google App Engine and Java EE? 无法在Google App Engine上部署java项目 - Unable to deploy java project on Google App Engine 无法在 GAE 上部署没有 app.yml 文件的 Java WAR 应用程序 - Cannot deploy Java WAR application without app.yml file on GAE 使用gcloud app deploy部署Google App Engine Java Eclipse项目 - Deploy Google App Engine Java Eclipse project with gcloud app deploy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM