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 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 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 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 manag ...
, 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 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 Jakarta (; , bew, Jakarte), officially the Special Capital Region of Jakarta ( id, Daerah Khusus Ibukota Jakarta) is the capital city, capital and list of Indonesian cities by population, largest city of Indonesia. Lying on the northwest coa ...
.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 ...
.


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 Jakarta Enterprise Beans (EJB; formerly Enterprise JavaBeans) is one of several Java APIs for modular construction of enterprise software. EJB is a server-side software component that encapsulates business logic of an application. An EJB web ...
, connectors, servlets,
Jakarta Server Pages Jakarta Server Pages (JSP; formerly JavaServer Pages) is a collection of technologies that helps software developers create dynamically generated web pages based on HTML, XML, SOAP, or other document types. Released in 1999 by Sun Microsystems, ...
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 Jakarta Enterprise Beans (EJB; formerly Enterprise JavaBeans) is one of several Java APIs for modular construction of enterprise software. EJB is a server-side software component that encapsulates business logic of an application. An EJB web ...
(''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 call In distributed computing, a remote procedure call (RPC) is when a computer program causes a procedure ( subroutine) to execute in a different address space (commonly on another computer on a shared network), which is coded as if it were a normal ...
s (using RMI 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 The Jakarta Transactions (JTA; formerly Java Transaction API), one of the Jakarta EE APIs, enables distributed transactions to be done across multiple X/Open XA resources in a Java environment. JTA was a specification developed under the Java Commu ...
(''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 Bean Validation defines a metadata model and API for JavaBean validation. The metadata source is annotations, with the ability to override and extend the meta-data through the use of XML validation descriptors. Originally defined as part of Java E ...
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 in ...
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 connectors, clustering, fault tolerance, high availability,
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 Jakarta Server Pages (JSP; formerly JavaServer Pages) is a collection of technologies that helps software developers create dynamically generated web pages based on HTML, XML, SOAP, or other document types. Released in 1999 by Sun Microsystems, ...
(''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 val ...
. 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 val ...
. 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 Jakarta Enterprise Beans (EJB; formerly Enterprise JavaBeans) is one of several Java APIs for modular construction of enterprise software. EJB is a server-side software component that encapsulates business logic of an application. An EJB web ...
(''EJB''). @Named @ViewScoped public class UserEdit


Example Data Access Object class

To implement business logic,
Jakarta Enterprise Beans Jakarta Enterprise Beans (EJB; formerly Enterprise JavaBeans) is one of several Java APIs for modular construction of enterprise software. EJB is a server-side software component that encapsulates business logic of an application. An EJB web ...
(''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) * Deployment descriptor * Java BluePrints *
Java Research License The Java Research License (JRL) is a software distribution license created by Sun in an effort to simplify and relax the terms from the "research section" of the Sun Community Source License. Sun's J2SE 1.6.0, '' Mustang'', is licensed under the ...
* 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