Jakarta EE, formerly Java Platform, Enterprise Edition (Java EE) and Java 2 Platform, Enterprise Edition (J2EE), is a set of specifications, extending
Java SE with specifications for enterprise features such as
distributed computing
A distributed system is a system whose components are located on different networked computers, which communicate and coordinate their actions by passing messages to one another from any system. Distributed computing is a field of computer sci ...
and
web services. Jakarta EE applications are run on
reference runtimes, that can be
microservices
A microservice architecture – a variant of the service-oriented architecture structural style – is an architectural pattern that arranges an application as a collection of loosely-coupled, fine-grained services, communicating through ligh ...
or
application servers, which handle transactions, security, scalability,
concurrency
Concurrent means happening at the same time. Concurrency, concurrent, or concurrence may refer to:
Law
* Concurrence, in jurisprudence, the need to prove both ''actus reus'' and ''mens rea''
* Concurring opinion (also called a "concurrence"), a ...
and management of the components it is deploying.
Jakarta EE is defined by its
specification. The specification defines
APIs (application programming interface) and their interactions. As with other
Java Community Process specifications, providers must meet certain conformance requirements in order to declare their products as ''Jakarta EE compliant''.
Examples of contexts in which Jakarta EE referencing runtimes are used are:
e-commerce
E-commerce (electronic commerce) is the activity of electronically buying or selling of products on online services or over the Internet. E-commerce draws on technologies such as mobile commerce, electronic funds transfer, supply chain mana ...
, accounting, banking information systems.
History
The platform was known as ''Java 2 Platform, Enterprise Edition'' or ''J2EE'' from version 1.2, until the name was changed to ''Java Platform, Enterprise Edition'' or ''Java EE'' in version 1.5.
Java EE was maintained by
Oracle
An oracle is a person or agency considered to provide wise and insightful counsel or prophetic predictions, most notably including precognition of the future, inspired by deities. As such, it is a form of divination.
Description
The wor ...
under the
Java Community Process. On September 12, 2017,
Oracle Corporation
Oracle Corporation is an American multinational computer technology corporation headquartered in Austin, Texas. In 2020, Oracle was the third-largest software company in the world by revenue and market capitalization. The company sells da ...
announced that it would submit Java EE to the
Eclipse Foundation.
The Eclipse top-level project has been named Eclipse Enterprise for Java (EE4J). The Eclipse Foundation could not agree with Oracle over the use of javax and Java trademarks. Oracle owns the trademark for the name "Java" and the platform was renamed from Java EE to Jakarta EE. The name refers to the largest city on the island of
Java
Java (; id, Jawa, ; jv, ꦗꦮ; su, ) is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea to the north. With a population of 151.6 million people, Java is the world's mo ...
and also the capital of Indonesia,
Jakarta.
[https://blogs.oracle.com/javamagazine/post/transition-from-java-ee-to-jakarta-ee ] The name should not be confused with the former
Jakarta Project which fostered a number of current and former Java projects at the
Apache Software Foundation.
Specifications
Jakarta EE includes several specifications that serve different purposes, like generating web pages, reading and writing from a database in a transactional way, managing distributed queues.
The Jakarta EE APIs include several technologies that extend the functionality of the base
Java SE APIs, such as
Jakarta Enterprise Beans,
connectors,
servlets,
Jakarta Server Pages and several
web service technologies.
Web specifications
*
Jakarta Servlet: defines how to manage HTTP requests, in a synchronous or asynchronous way. It is low level and other Jakarta EE specifications rely on it;
* Jakarta WebSocket: API specification that defines a set of APIs to service
WebSocket connections;
*
Jakarta Server Faces: a technology for constructing user interfaces out of components;
*
Jakarta Expression Language
The Jakarta Expression Language (EL; formerly Expression Language and Unified Expression Language) is a special purpose programming language mostly used in Jakarta EE web applications for embedding and evaluating expressions in web pages.
The s ...
(''EL'') is a simple language originally designed to satisfy the specific needs of web application developers. It is used specifically in Jakarta Faces to bind components to (backing) beans and in Contexts and Dependency Injection to named beans, but can be used throughout the entire platform.
Web service specifications
*
Jakarta RESTful Web Services provides support in creating web services according to the
Representational State Transfer (REST) architectural pattern;
* Jakarta JSON Processing is a set of specifications to manage information encoded in JSON format;
* Jakarta JSON Binding provides specifications to convert JSON information into or from Java classes;
*
Jakarta XML Binding allows mapping XML into Java objects;
*
Jakarta XML Web Services can be used to create SOAP web services.
Enterprise specifications
*
Jakarta Activation (''JAF'') specifies an architecture to extend component Beans by providing data typing and bindings of such types.
* Jakarta Contexts and Dependency Injection (''CDI'') is a specification to provide a
dependency injection container;
*
Jakarta Enterprise Beans (''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
RMI may refer to:
Science and technology
* Radio-magnetic indicator, an instrument used in aircraft navigation
* Repetitive motion injury, an injury to the musculoskeletal and nervous systems
* Richtmyer–Meshkov instability, an instability occu ...
or
RMI-IIOP RMI-IIOP (read as "RMI over IIOP") denotes the Java Remote Method Invocation (RMI) interface over the Internet Inter-Orb Protocol (IIOP), which delivers Common Object Request Broker Architecture (CORBA) distributed computing capabilities to the Ja ...
),
concurrency control
In information technology and computer science, especially in the fields of computer programming, operating systems, multiprocessors, and databases, concurrency control ensures that correct results for concurrent operations are generated, while ...
,
dependency injection and
access control
In the fields of physical security and information security, access control (AC) is the selective restriction of access to a place or other resource, while access management describes the process. The act of ''accessing'' may mean consuming ...
for business objects. This package contains the Jakarta Enterprise Beans classes and interfaces that define the contracts between the enterprise bean and its clients and between the enterprise bean and the ejb container.
*
Jakarta Persistence (''JPA'') are specifications about object-relational mapping between relation database tables and Java classes.
*
Jakarta Transactions (''JTA'') contains the interfaces and annotations to interact with the transaction support offered by Jakarta 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 Jakarta 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.
*
Jakarta Messaging (''JMS'') provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.
Other specifications
* 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 Jakarta EE, JPA honors bean validation constraints in the persistence layer, while
JSF does so in the view layer.
* Jakarta Batch provides the means for
batch processing
Computerized batch processing is a method of running software programs called jobs in batches automatically. While users are required to submit the jobs, no other interaction by the user is required to process the batch. Batches may automatically ...
in applications to run long running background tasks that possibly involve a large volume of data and which may need to be periodically executed.
*
Jakarta Connectors
Jakarta Connectors (JCA; formerly Java EE Connector Architecture and J2EE Connector Architecture) is a Java programming language tool for connecting application servers and enterprise information systems (EIS) as part of enterprise application i ...
is a Java-based tool for connecting application servers and enterprise information systems (''EIS'') as part of enterprise application integration (''EAI''). This is a low-level API aimed at vendors that the average application developer typically does not come in contact with.
Web profile
In an attempt to limit the footprint of web containers, both in physical and in conceptual terms, the web profile was created, a subset of the Jakarta EE specifications.
The Jakarta EE web profile comprises the following:
Certified referencing runtimes
Although by definition all Jakarta EE implementations provide the same base level of technologies (namely, the Jakarta EE spec and the associated APIs), they can differ considerably with respect to extra features (like
connector
Connector may refer to:
Hardware
*Plumbing
* Electrical connector, a device for joining electrical circuits together (sometimes known as ports, plugs, or interfaces)
** Gender of connectors and fasteners
** AC power plugs and sockets, devices tha ...
s,
clustering,
fault tolerance,
high availability
High availability (HA) is a characteristic of a system which aims to ensure an agreed level of operational performance, usually uptime, for a higher than normal period.
Modernization has resulted in an increased reliance on these systems. F ...
,
security" \n\n\nsecurity.txt is a proposed standard for websites' security information that is meant to allow security researchers to easily report security vulnerabilities. The standard prescribes a text file called \"security.txt\" in the well known locat ...
, etc.), installed size, memory footprint, startup time, etc.
Jakarta EE
Java EE
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.
In Jakarta EE a (web) UI can be built using
Jakarta Servlet,
Jakarta Server Pages (''JSP''), or
Jakarta Server Faces (''JSF'') with
Facelets
In computing, Facelets is an open-source Web template system under the Apache license and the default view handler technology (aka view declaration language) for Jakarta Server Faces (JSF; formerly JavaServer Faces). The language requires ...
. The example below uses Faces and
Facelets
In computing, Facelets is an open-source Web template system under the Apache license and the default view handler technology (aka view declaration language) for Jakarta Server Faces (JSF; formerly JavaServer Faces). The language requires ...
. Not explicitly shown is that the input components use the Jakarta EE Bean Validation API under the covers to validate constraints.
Example Backing Bean class
To assist the view, Jakarta EE uses a concept called a "Backing Bean". The example below use
Contexts and Dependency Injection (CDI)and
Jakarta Enterprise Beans (''EJB'').
@Named
@ViewScoped
public class UserEdit
Example Data Access Object class
To implement business logic,
Jakarta Enterprise Beans (''EJB'') is the dedicated technology in Jakarta EE. For the actual persistence,
JDBC or
Jakarta Persistence (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.
@Stateless
public class UserDAO
Example Entity class
For defining entity/model classes Jakarta EE provides the Jakarta Persistence (''JPA''), and for expressing constraints on those entities it provides the Bean Validation API. The example below uses both these technologies.
@Entity
public class User
See also
*
Canigó (framework)
Canigó is the name chosen for the Java EE framework of the Generalitat de Catalunya.
Purpose and architecture
Canigó is defined as a "common technological framework for development and execution of web applications for corporative systems and ...
*
Deployment descriptor
*
Java BluePrints
*
Java Research License
*
Sun Community Source License
*
Sun Java System Portal Server
*
Web container
References
External links
*
*
Jakarta EE Compatible Products: Enterprise Java Application and Web Servers-
Eclipse Foundation
The Jakarta EE TutorialFirst Cup of Jakarta EE Tutorial An Introduction to Jakarta EE
Oracle Technology Network
{{Java (software platform)
Articles with example Java code
Computing platforms
Platform, Enterprise Edition
Platform, Enterprise Edition
Web frameworks