HOME

TheInfoList



OR:

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 and web services. Jakarta EE applications are run on reference runtimes, that can be microservices or
application server An application server is a server that hosts applications or software that delivers a business application through a communication protocol. An application server framework is a service layer model. It includes software components available to a ...
s, 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, 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 word '' ...
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 and also the capital of Indonesia,
Jakarta Jakarta (; , bew, Jakarte), officially the Special Capital Region of Jakarta ( id, Daerah Khusus Ibukota Jakarta) is the capital and largest city of Indonesia. Lying on the northwest coast of Java, the world's most populous island, 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 The Jakarta Project created and maintained open source software for the Java platform. It operated as an umbrella project under the auspices of the Apache Software Foundation, and all Jakarta products are released under the Apache License. As ...
which fostered a number of current and former Java projects at the
Apache Software Foundation The Apache Software Foundation (ASF) is an American nonprofit corporation (classified as a 501(c)(3) organization in the United States) to support a number of open source software projects. The ASF was formed from a group of developers of the A ...
.


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), concurrency control, 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 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,
security Security is protection from, or resilience against, potential harm (or other unwanted coercive change) caused by others, by restraining the freedom of others to act. Beneficiaries (technically referents) of security may be of persons and social ...
, 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 Tutorial

First 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