Java 应用服务器和JVM是什么关系?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19292875/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 15:45:53  来源:igfitidea点击:

what is the relationship between Application server and JVM?

javaapplication-server

提问by Simple-Solution

A quick question that come up to my mind and I thought to post it here to clarify my inner concerns.

我想到了一个快速的问题,我想把它贴在这里以澄清我内心的担忧。

What is the relationship between APP server (i.e. JBoss, WebLogic etc) and JVM?

APP服务器(即JBoss、WebLogic等)和JVM是什么关系?

Where is APP server located; does it run within JVM?

APP服务器在哪里;它在JVM中运行吗?

Many Thanks!

非常感谢!

采纳答案by Masudul

In the case of Java application servers, the server behaves like an extended virtual machine for running applications, transparently handling connections to the database on one side, and, often, connections to the Web client on the other.

在这种情况下Java application servers,服务器就像一个扩展的虚拟机,用于运行应用程序,一方面透明地处理与数据库的连接,另一方面通常处理与 Web 客户端的连接。

回答by Pokuri

APP server developed in respect to J2EE specifications using J2SE and J2EE APIs. Yes, as APP developed in java you have to execute it on top of JVM it self. You can treat running APP as executing a bigggg java class

使用 J2SE 和 J2EE API 根据 J2EE 规范开发的 APP 服务器。是的,作为用 Java 开发的 APP,您必须在 JVM 之上执行它。您可以将运行 APP 视为执行 bigggg java 类

回答by user2866507

JVM is java run time platform on top of which every java applications runs, it can be a simple stand alone application, an applet or web application. It provides support for execution life cycle of an application. In other words any thing written in Java runs on top of this platform.

JVM 是 Java 运行时平台,每个 Java 应用程序都在其上运行,它可以是简单的独立应用程序、小程序或 Web 应用程序。它为应用程序的执行生命周期提供支持。换句话说,任何用 Java 编写的东西都运行在这个平台之上。

An application server is a container in which a specialized Java application, a web application, runs. It provides support for web application life cycle like Servlet and JSP life cycle management, JNDI, JMS and other supports. Actually, an application server is generally a java application running on top of JVM.

应用程序服务器是一个容器,专门的 Java 应用程序(Web 应用程序)在其中运行。它提供对 Web 应用程序生命周期的支持,如 Servlet 和 JSP 生命周期管理、JNDI、JMS 等支持。实际上,应用服务器通常是运行在 JVM 之上的 Java 应用程序。