This article introduces the composition of Java EE containers and briefly introduces four types of Java EE containers. Let's take a look at it.
Let's take a look at the composition of Java EE containers:
Web Container: includes JSP and Servlet components, which can be used to complete complex business logic;
EJB container: contains the EJB component. The EJB specification defines a framework for developing and deploying distributed business logic;
The applet container contains the component applet. You can use j2se to develop the applet;
Application client container: contains the application client component.
Currently, many popular Java EE containers are available: tomcat, JBoss, resin, and glassfish. The following is a simple comparison between the four java EE containers.
1. Tomcat
Tomcat is a Java Web Application Server fully supported by Apache. It is widely used in the open source field due to its excellent stability and rich documentation.
2. JBoss
As a Java EE application server, JBoss is not only a servlet container, but also an EJB container, which is welcomed by enterprise developers and makes up for the shortcomings of Tomcat as a servlet container.
3. Resin
Resin is just a servlet container. However, due to its excellent running speed, resin is favored in the lightweight Java Web field, especially in the Internet Web service field, many well-known companies use it as their Java Web application servers, such as 163 and ku6.
The main commercial application servers are Weblogic and websphere. I used WebLogic for a long time and used it only as a servlet container. However, under the same conditions, it is much better than tomcat in terms of performance and ease of use.
4. glassfish
Glassfish is a Java EE server (Java EE container) launched by Sun. It is an active open-source community that continuously improves its availability through feedback from the community, after glassfish V1 glassfish V2 to today's glassfish V3, it has matured. Glassfish is a Free and Open Source Application Service that implements Java ee 5. the Java ee 5 platform includes the following latest technologies: EJB 3.0, JSF 1.2, Servlet 2.5,
JSP 2.1, JAX-WS 2.0, jaxb 2.0, Java persistence 1.0, common annonations 1.0, Stax 1.0, etc.
Supports clusters and enhances the availability and scalability of the deployment architecture through session state replication in the memory. It supports clusters easily by adding machines, it can easily improve the load-carrying capability of the website. In terms of resolution capability, the HTML throughput is not different from that of the Apache server, that is, Tomcat is incomparable and supports directory deployment, hot deployment solves the hot deployment capability defects of Tomcat.
It is more user-friendly in terms of versions. There is a simplified version used for development. It is specially used to deploy the WEB Project version and must fully comply with the J2EE standard version.