World Library  
Flag as Inappropriate
Email this Article

Java ee

Article Id: WHEBN0007512725
Reproduction Date:

Title: Java ee  
Author: World Heritage Encyclopedia
Language: English
Subject: Value object
Publisher: World Heritage Encyclopedia

Java ee

Java Platform, Enterprise Edition or Java EE is Oracle's enterprise Java computing platform. The platform provides an API and runtime environment for developing and running enterprise software, including network and web services, and other large-scale, multi-tiered, scalable, reliable, and secure network applications. Java EE extends the Java Platform, Standard Edition (Java SE),[1] providing an API for object-relational mapping, distributed and multi-tier architectures, and web services. The platform incorporates a design based largely on modular components running on an application server. Software for Java EE is primarily developed in the Java programming language. The platform emphasizes Convention over configuration [2] and annotations for configuration. Optionally XML can be used to override annotations or to deviate from the platform defaults.

Version history

The platform was known as Java 2 Platform, Enterprise Edition or J2EE until the name was changed to Java Platform, Enterprise Edition or Java EE in version 5. The current version is called Java EE 7.

  • J2EE 1.2 (December 12, 1999)
  • J2EE 1.3 (September 24, 2001)
  • J2EE 1.4 (November 11, 2003)
  • Java EE 5 (May 11, 2006)
  • Java EE 6 (Dec 10, 2009)
  • Java EE 7 (May 28, 2013,[3] but April 5, 2013 according to spec document. June 12, 2013 was the planned kickoff date[4])

Standards and specifications

Java EE is defined by its specification. As with other Java Community Process specifications, providers must meet certain conformance requirements in order to declare their products as Java EE compliant.

Java EE includes several API specifications, such as JDBC, RMI, e-mail, JMS, web services, XML, etc., and defines how to coordinate them. Java EE also features some specifications unique to Java EE for components. These include Enterprise JavaBeans, Connectors, servlets, JavaServer Pages and several web service technologies. This allows developers to create enterprise applications that are portable and scalable, and that integrate with legacy technologies. A Java EE application server can handle transactions, security, scalability, concurrency and management of the components it is deploying, in order to enable developers to concentrate more on the business logic of the components rather than on infrastructure and integration tasks.

General APIs

The Java EE APIs includes several technologies that extend the functionality of the base Java SE APIs.

  • Java EE 7 Platform Packages
  • Java EE 6 Platform Packages
  • Java EE 5 Platform Packages

/javax/servlet/package-summary.html javax.servlet.*]

The servlet specification defines a set of APIs to service mainly HTTP requests. It includes the JavaServer Pages specification.

/javax/websocket/package-summary.html javax.websocket.*]

The Java API for WebSocket specification defines a set of APIs to service WebSocket connections.

/javax/faces/package-summary.html javax.faces.*]

This package defines the root of the JavaServer Faces (JSF) API. JSF is a technology for constructing user interfaces out of components.

/javax/faces/component/package-summary.html javax.faces.component.*]

This package defines the component part of the JavaServer Faces (JSF) API. Since JSF is primarily component oriented, this is one of the core packages. The package overview contains a UML diagram of the component hierarchy.

/javax/el/package-summary.html javax.el.*]

This package defines the classes and interfaces for Java EE's Expression Language. The Expression Language (EL) is a simple language originally designed to satisfy the specific needs of web application developers. It's used specifically in JSF to bind components to (backing) beans and in CDI to name beans, but can be used throughout the entire platform.

/javax/enterprise/inject/package-summary.html javax.enterprise.inject.*]

These packages define the injection annotations for the contexts and Dependency Injection (CDI) APIs.

/javax/enterprise/context/package-summary.html javax.enterprise.context.*]

These packages define the context annotations and interfaces for the Contexts and Dependency Injection (CDI) API.

/javax/ejb/package-summary.html javax.ejb.*]

The Enterprise JavaBean (EJB) specification defines a set of lightweight APIs that an object container (the EJB container) will support in order to provide transactions (using JTA), remote procedure calls (using RMI or RMI-IIOP), concurrency control, dependency injection and access control for business objects. This package contains the Enterprise JavaBeans classes and interfaces that define the contracts between the enterprise bean and its clients and between the enterprise bean and the ejb container.

/javax/validation/package-summary.html javax.validation.*]

This package contains the annotations and interfaces for the declarative validation support offered by the Bean Validation API. Bean Validation provides a unified way to provide constraints on beans (e.g. JPA model classes) that can be enforced cross-layer. In Java EE, JPA honors bean validation constraints in the persistence layer, while JSF does so in the view layer.

/javax/persistence/package-summary.html javax.persistence.*]

This package contains the classes and interfaces that define the contracts between a persistence provider and the managed classes and the clients of the Java Persistence API (JPA).

/javax/transaction/package-summary.html javax.transaction.*]

This package provides the Java Transaction API (JTA) that contains the interfaces and annotations to interact with the transaction support offered by Java EE. Even though this API abstracts from the really low-level details, the interfaces are also considered somewhat low-level and the average application developer in Java EE is either assumed to be relying on transparent handling of transactions by the higher level EJB abstractions, or using the annotations provided by this API in combination with CDI managed beans.


This package provides the core of the Java Authentication SPI (JASPIC) that contains the interfaces and classes to build authentication modules for secure Java EE applications. Authentication modules are responsible for the interaction dialog with a user (e.g. redirecting to a Form or to an OpenID provider), verifying the user's input (e.g. by doing an LDAP lookup, database query or contacting the OpenID provider with a token) and retrieving a set of groups/roles that the authenticated user is in or has (e.g. by again doing an LDAP lookup or database query).

/javax/enterprise/concurrent/package-summary.html javax.enterprise.concurrent.*]

This package provides the interfaces for interacting directly with Java EE's platform default managed thread pool. A higher-level executor service working on this same thread pool can be used optionally. The same interfaces can be used for user-defined managed thread pools, but this relies on vendor specific configuration and is not covered by the Java EE specification.

/javax/jms/package-summary.html javax.jms.*]

This package defines the Java Message Service (JMS) API(Application programming Interface). The JMS API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.

/javax/batch/api/package-summary.html javax.batch.api.*]

This package defines the entry AP for Java EE Batch Applications. The Batch Applications API provides the means to run long running background tasks that possibly involve a large volume of data and which may need to be periodically executed.

/javax/resource/package-summary.html javax.resource.*]

This package defines the Java EE Connector Architecture (JCA) API. Java EE Connector Architecture (JCA) is a Java-based technology solution for connecting application servers and enterprise information systems (EIS) as part of enterprise application integration (EAI) solutions. This is a low-level API aimed at vendors that the average application developer typically does not come in contact with.

Certified application servers

App Server Java EE 7 certified - Full Java EE 7 certified - Web Java EE 6 certified - Full
Official Oracle page for Java EE Compatibility.
Java EE 6 certified - Web Java EE 5 certified J2EE 1.4 certified Licensing
GlassFish server Open Source Edition Yes v4.0 [5] Yes v3.x and upward[6] Yes v3.x Web Profile Yes v2.1.x[6] Free software
Oracle GlassFish Server Yes v3[7] based on the open source GlassFish application server Yes Sun Java System Application Server v9.0 Yes Sun Java System Application Server v8.2 Proprietary software
Oracle WebLogic Server Yes v12c[8] Yes v10.3.5.0 Yes v9 Proprietary software
JBoss Application Server No v8.0/wildfly in development [9][10][11] Yes v7.1[12] Yes v6.0 [2] Yes v5.1[13][14] Yes v4.x Free software
JBoss Enterprise Application Platform Yes v6.0 [15] Yes v5
OW2 JOnAS No v5.3 in development [16] Yes v5.3 rc1 [17] Yes Yes Free software
IBM WebSphere Application Server Yes v8[18] Yes v7 Yes Proprietary software
IBM WebSphere Application Server Liberty Yes v8.5.5 [19] Proprietary software
IBM WebSphere Application Server Community Edition Yes v3.0[20] Yes v2.1 Proprietary software
Apache Geronimo Yes v3.0-beta-1 Yes v2.0 Yes v1.0 Free software
Fujitsu Interstage Application Server[22] Yes v1[23] Yes Proprietary software
TmaxSoft JEUS Yes v7[24][25] Yes v6 Yes v5 Proprietary software
Caucho Resin Server Yes v4.0.[26] Yes Proprietary software
Apache TomEE[27][28] Yes Free software
SAP NetWeaver Yes v2.x [29] Yes Yes Proprietary software
Oracle iPlanet Web Server Yes Sun Java System Web Server Proprietary software
Oracle Containers for Java EE Yes Proprietary software
NEC WebOTX Yes Proprietary software
Oracle Application Server 10g Yes Proprietary software
Pramati Server Yes v5.0 Proprietary software
Trifork T4 Yes Proprietary software
Sybase Enterprise Application Server [30] Yes Proprietary software

Differences between implementations

Although by definition all Java EE implementations provide the same base level of technologies (namely, the Java EE spec and the associated APIs), they can differ considerably with respect to extra features (like connectors, clustering, fault tolerance, high availability, security, etc.), installed size, memory footprint, startup time, etc.

Code Sample

The code sample shown below demonstrates how various technologies in Java EE 7 are used together to build a web form for editing a user.

Example of UI page

In Java EE a (web) UI can be built using Servlet, JavaServer Pages (JSP), or JavaServer Faces (JSF) with Facelets. The example below uses JSF and Facelets. Not explicitly shown is that the input components use the Java EE Bean Validation API under the covers to validate constraints.

      xmlns:h="" xmlns:f="">
        {userEdit.user}" converter="#{userConvertor}" />
                {userEdit.user.firstName}" label="First name" />
                {userEdit.user.lastName}" label="Last name"  />
                {userEdit.saveUser}" value="Save" />

Example Backing Bean class

To assist the view, Java EE uses a concept called a "Backing Bean". The example below uses Enterprise JavaBean (EJB).

public class UserEdit {
    private User user;
    private UserDAO userDAO;
    public String saveUser() {;        
        addFlashMessage("User " + this.user.getId() + " saved");
        return "users.xhtml?faces-redirect=true";
    public void setUser(User user) {
        this.user = user;
    public User getUser() {
        return user;

Example DAO class

To implement business logic, Enterprise JavaBean (EJB) is the dedicated technology in Java EE. For the actual persistence, JDBC or Java Persistence API (JPA) can be used. The example below uses EJB and JPA. Not explicitly shown is that JTA is used under the covers by EJB to control transactional behavior.

public class UserDAO {
    private EntityManager entityManager;
    public void save(User user) {
    public void update(User user) {
    public List getAll() {
        return entityManager.createNamedQuery("User.getAll", User.class)

Example Entity class

For defining entity/model classes Java EE provides the Java Persistence API (JPA), and for expressing constraints on those entities it provides the Bean Validation API. The example below uses both these technologies.

public class User {
    @GeneratedValue(strategy = IDENTITY)
    private Integer id;
    @Size(min = 2, message="First name too short")
    private String firstName;
    @Size(min = 2, message="Last name too short")
    private String lastName;
    public Integer getId() {
        return id;
    public void setId(Integer id) { = id;
    public String getFirstName() {
        return firstName;
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    public String getLastName() {
        return lastName;
    public void setLastName(String lastName) {
        this.lastName = lastName;

See also


External links

  • Oracle Technology Network's Java EE
  • Oracle's Java EE Compatibility page - Certified Java EE Compatible Implementations
  • Core J2EE Patterns
  • A short tutorial introducing beginning Java EE developers to the Java EE platform

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.