The J2EE platform offers:
The term was changed from J2EE and JEE to Java EE in May 2006.
The J2EE platform uses a multitiered, distributed application model.
Application logic is divided into components according to function, and the various application components that make up a J2EE application are installed on different machines depending on the tier in the multitiered J2EE environment to which the application component belongs.
Type Tier | Component | Run on the |
---|---|---|
Client-tier | Rich Java Client, Applet, Web Client | client machine |
Web-tier | Web components (jsp page or servlet) | J2EE server |
Business-tier | Enterprise javabean (EJB) | J2EE server |
Enterprise information system (EIS)-tier | ERP, mainframe transaction processing, database systems, and other legacy information systems. | EIS server |
Although a J2EE application can consist of the three or four tiers. J2EE multitiered applications are generally considered to be three-tiered applications because they are distributed over three different locations:
Typical 3-tier Web application:
J2EE applications are made up of components.
A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and that communicates with other components.
The J2EE specification defines the following J2EE components that run:
Application clients directly access enterprise beans running in the business tier. However, if application requirements warrant it, a J2EE application client can open an HTTP connection to establish communication with a servlet running in the Web tier.
J2EE components are written in the Java programming language and are compiled in the same way as any program in the language.
Difference with Standard Java Class: The difference between J2EE components and “standard” Java classes is that J2EE components are assembled into a J2EE application, verified to be well formed and in compliance with the J2EE specification, and deployed to production, where they are run and managed by the J2EE server.
The server and client tiers might also include components based on the JavaBeans component architecture (JavaBeans component) to manage the data flow between an application client or applet and components running on the J2EE server or between server components and a database. JavaBeans components are not considered J2EE components by the J2EE specification.
Business code, which is logic that solves or meets the needs of a particular business domain such as banking, retail, or finance, is handled by enterprise beans running in the business tier.
An enterprise bean:
A JavaBeans component is generally included in the client to manage the user input and send that input to enterprise beans running in the business tier for processing.
There are tons of improvements in the Java EE platform to make it easy-to-use and powerful.
Some examples: