Java EE Containers vs Web Containers

前端 未结 6 980
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 14:23

I\'m relatively new to Java EE/EJB, and I\'ve been reading a lot regarding Java EE containers. I\'ve had experience working with a web container (WAR file in JBoss). I am al

6条回答
  •  醉梦人生
    2020-12-07 14:48

    The web-container and EJB-container are subsets of Java EE containers. Java EE containers also encompass the application client container and applet container.

    Here's what the doc says:

    The deployment process installs Java EE application components in the Java EE containers.

    • Java EE server: The runtime portion of a Java EE product. A Java EE server provides EJB [container and web container]*.

    • Enterprise JavaBeans (EJB) container: Manages the execution of enterprise beans for Java EE applications. Enterprise beans and their container run on the Java EE server.

    • Web container: Manages the execution of JSP page and servlet components for Java EE applications. Web components and their
      container run on the Java EE server.

    • Application client container: Manages the execution of application client components. Application clients and their container run on the client.

    • Applet container: Manages the execution of applets. Consists of a web browser and Java Plug-in running on the client together.

    *In the doc they use the plurial form, but actually you only have one web container and one EJB container per Java EE server.

提交回复
热议问题