gpt4 book ai didi

Java EE 容器内部结构

转载 作者:太空宇宙 更新时间:2023-11-04 11:31:29 29 4
gpt4 key购买 nike

作为一个有 Java SE 背景的 Java EE 新手,我不太明白 Java EE 的含义,尤其是像 web 容器Jave EE 容器 这样的流行词的含义。

据我所知,要运行java程序,您需要调用java,并将classpath设置为依赖项(通常为.jar),并且还需要一个具有静态main方法的入口类。

我认为启动Java EE程序,和调用java没有什么区别,对吧?那么容器大多数时候只是包含 Java EE 标准注释实现的 .jar 文件吗?

像JBOSS这样的容器只是一堆库,用于支持涉及事务、安全等的所谓“企业应用程序”吗?

最佳答案

Java SE = Standard Edition. This is the core Java programming platform. It contains all of the libraries and APIs that any Java programmer should learn (java.lang, java.io, java.math, java.net, java.util, etc...).

Java EE = Enterprise Edition. From Wikipedia:

The Java platform (Enterprise Edition) differs from the Java Standard Edition Platform (Java SE) in that it adds libraries which provide functionality to deploy fault-tolerant, distributed, multi-tier Java software, based largely on modular components running on an application server. In other words, if your application demands a very large scale, distributed system, then you should consider using Java EE. Built on top of Java SE, it provides libraries for database access (JDBC, JPA), remote method invocation (RMI), messaging (JMS), web services, XML processing, and defines standard APIs for Enterprise JavaBeans, servlets, portlets, Java Server Pages, etc...


来源:Difference between Java SE/EE/ME?

关于Java EE 容器内部结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43726859/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com