Jakarta EE - Wikipedia
Jakarta EE
  (Redirected from J2EE)
Jakarta EE, formerly Java Platform, Enterprise Edition (Java EE) and Java 2 Platform, Enterprise Edition (J2EE) is a set of specifications, extending Java SE[1] with specifications for enterprise features such as distributed computing and web services.[2] Jakarta EE applications are run on reference runtimes, that can be microservices or application servers, which handle transactions, security, scalability, concurrency and management of the components it is deploying.
Jakarta EE
Player softwareJava
Programming language(s)Java
Application(s)Application server
StatusActive
LicenseEclipse Public License or GNU General Public License w/Classpath exception
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 under the Java Community Process. On September 12, 2017, Oracle Corporation announced that it would submit Java EE to the Eclipse Foundation.[3] The Eclipse top-level project has been named Eclipse Enterprise for Java (EE4J).[4] The Eclipse Foundation could not agree with Oracle over the use of javax and Java trademarks.[5] Oracle owns the trademark for the name "Java" and renamed the Java EE platform to Jakarta EE.[6][7] 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
Web service specifications
Enterprise specifications
Other specifications
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:
SpecificationJava EE 6[14]Java EE 7[8]Java EE 8[10]
Jakarta EE 8[15]
Jakarta EE 9[16]
Jakarta Servlet3.03.14.05.0
Jakarta Server Pages (JSP)2.22.32.33.0
Jakarta Expression Language (EL)2.23.03.04.0
Jakarta Debugging Support for Other Languages (JSR-45)1.01.01.02.0
Jakarta Standard Tag Library (JSTL)1.21.21.22.0
Jakarta Faces (JSF)2.02.22.33.0
Jakarta RESTful Web Services (JAX-RS)1.12.02.13.0
Jakarta WebSocket (WebSocket)N/A1.01.12.0
Jakarta JSON Processing (JSON-P)N/A1.01.12.0
Jakarta JSON BindingN/AN/A1.12.0
Jakarta Annotations (JSR 250)1.11.21.32.0
Jakarta Enterprise Beans (EJB)3.1 Lite3.2 Lite3.2 Lite4.0 Lite
Jakarta Transactions (JTA)1.11.21.22.0
Jakarta Persistence (JPA)2.02.12.23.0
Jakarta Bean Validation1.01.12.03.0
Jakarta Managed Beans1.01.01.02.0
Jakarta Interceptors1.11.21.22.0
Jakarta Contexts and Dependency Injection (CDI)1.01.12.03.0
Jakarta Dependency Injection1.01.01.02.0
Jakarta SecurityN/AN/A1.02.0
Jakarta AuthenticationN/A1.01.12.0
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, etc.), installed size, memory footprint, startup time, etc.

Jakarta EE [17][18]
Referencing runtimeDeveloperJakarta EE 9 Platform Compatible ProductsJakarta EE 9 Web Profile Compatible ProductsJakarta EE 8 Platform Compatible ProductsJakarta EE 8 Web Profile Compatible ProductsLicensing
GlassFishEclipseYes 6.0.0Yes 6.0.0Yes 5.1.0Yes 5.1.0Free software
Open LibertyIBMYes 21.0.0.3-betaYes 21.0.0.2-betaYes 19.0.0.6, 20.0.0.3Yes 19.0.0.6, 20.0.0.3Free software
IBM WebSphere LibertyIBMNoNoYes 20.0.0.3Yes 20.0.0.3Proprietary software
WildFlyRed HatNoYes 23.0.0Yes 18.0.0Yes 18.0.0Free software
Red Hat JBoss Enterprise Application PlatformRed HatNoNoYes 7.3.0Yes 7.3.0Free software
TomEEApacheNoYes 10.0.xNoYes 9.xFree software
Payara ServerPayara Services LimitedNoNoYes 5.22.0, 5.23.0Yes 5.23.0Free software
Thunisoft Application ServerBeijing Thunisoft Information TechnologyNoNoYes 2.8NoProprietary software
JEUSTmaxSoftNoNoYes 8.5NoProprietary software
InforSuite Application ServerShandong Cvicse MiddlewareNoNoYes 10NoProprietary software
Java EE
Referencing runtimeDeveloperJava EE 8 certified – FullJava EE 8 certified – WebJava EE 7 certified – FullJava EE 7 certified – WebJava EE 6 certified – Full
Official Oracle page for Java EE Compatibility.
Java EE 6 certified – WebJava EE 5 certifiedJ2EE 1.4 certifiedLicensing
GlassFish server Open Source EditionOracleYes v5.0[19]Yes v5.0[19]Yes v4.x[20]Yes v4.x[20]Yes v3.x and upward[21]Yes v3.x Web ProfileYes v2.1.x[21]Free software
Oracle GlassFish ServerOracleYes v3[22] based on the open source GlassFish application serverYes Sun Java System Application Server v9.0Yes Sun Java System Application Server v8.2Proprietary software
Oracle WebLogic ServerOracleYes 14.1.1[23]Yes 12.2.1[24]Yes v12c[25]Yes v10.3.5.0Yes v9Proprietary software
WildFlyRed HatYes v14.x[19]Yes v14.x[19]Yes v8.1 [26]Yes v8.0.0.FinalYes v7.1[27]Yes v6.0[28] and v7.0[29]Yes v5.1[30][31]Yes v4.xFree software
JBoss Enterprise Application PlatformRed HatYes v7.2 [32]Yes v7.0[20]Yes v7.0[20]Yes v6.0[33]Yes v5Proprietary software
IBM WebSphere Application ServerIBMYes v9.x[19]Yes v9.x[20]Yes v8[34]Yes v7YesProprietary software
IBM WebSphere Application Server LibertyIBMYes v18.0.0.2[35]Yes v18.0.0.2[35]Yes v8.5.5.6[36][37]Yes v8.5.5.6[20]Yes v8.5.5[38]Proprietary software
Open LibertyIBMYes v18.0.0.2Yes v18.0.0.2Free software
IBM WebSphere Application Server Community EditionIBMYes v3.0Yes v2.1Proprietary software
Apache GeronimoApacheYes v3.0-beta-1[39][40]Yes v2.0Yes v1.0Free software
JEUSTmaxSoftYes v8Yes v7[41][42]Yes v6Yes v5Proprietary software
Cosminexus Application ServerHitachiYes v10.0[19]Yes v9[43]Proprietary software
Fujitsu Interstage Application Server[44]FujitsuYes v12.0[19]Yes v1 Azure/v10.1[45][46]YesProprietary software
WebOTXNECYes[47]YesProprietary software
BES Application ServerBaolandeYes v9.5[20]
Apache TomEE[48][49]ApacheNo 7 (Java EE 7 like, but not certified[50])YesFree software
Resin ServerCauchoYes v4.0[51]YesProprietary software
SiwpasOW2Yes v6.0[52]Free software
JOnASOW2Yes v5.3 rc1[53]YesYesFree software
SAP NetWeaverSAPYes v2.x[54]YesYesProprietary software
Oracle Containers for Java EEOracleYesProprietary software
Oracle iPlanet Web ServerOracleYes Sun Java System Web ServerProprietary software
Oracle Application Server 10gOracleYesProprietary software
Pramati ServerPramati TechnologiesYes v5.0Proprietary software
Trifork T4TriforkYesProprietary software
Sybase Enterprise Application Server[55]SybaseYesProprietary software
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. The example below uses Faces and Facelets. Not explicitly shown is that the input components use the Jakarta EE Bean Validation API under the covers to validate constraints.
<html xmlns=​"http://www.w3.org/1999/xhtml" xmlns:h=​"http://xmlns.jcp.org/jsf/html" xmlns:f=​"http://xmlns.jcp.org/jsf/core"​> <f:metadata> <f:viewParam name="user_id" value=​"#{userEdit.user}" converter=​"#{userConvertor}" /> </f:metadata> <h:body> <h:messages /> <h:form> <h:panelGrid columns="2"> <h:outputLabel for="firstName" value="First name" /> <h:inputText id="firstName" value=​"#{userEdit.user.firstName}" label="First name" /> <h:outputLabel for="lastName" value="Last name" /> <h:inputText id="lastName" value=​"#{userEdit.user.lastName}" label="Last name" /> <h:commandButton action=​"#{userEdit.saveUser}" value="Save" /> </h:panelGrid> </h:form> </h:body></html>
Example Backing Bean class
To assist the view, Jakarta EE uses a concept called a "Backing Bean". The example below uses Contexts and Dependency Injection (CDI) and Jakarta Enterprise Beans (EJB).
@Named​@ViewScoped​public class UserEdit { private User user; @Inject private UserDAO userDAO; public String saveUser() { userDAO​.​save​(​this​.​user​); 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 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.
@Statelesspublic class UserDAO { @PersistenceContext private EntityManager entityManager; public void save(User user) { entityManager​.​persist​(​user​); } public void update(User user) { entityManager​.​merge​(​user​); } public List<User> getAll() { return entityManager​.​createNamedQuery​(​"User.getAll"​, User.class) .getResultList(); }}
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.
@Entitypublic class User { @Id @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) { this.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
Computer programming portal
References
  1. ^ "Differences between Java EE and Java SE - Your First Cup: An Introduction to the Java EE Platform". Docs.oracle.com. 2012-04-01. Retrieved 2012-07-18.
  2. ^ "Java EE Overview". Oracle Corporation. Retrieved February 26, 2017.
  3. ^ John K. Waters (2017-09-12). "Java EE Is Moving to the Eclipse Foundation". ADTmag. Retrieved 2017-09-13.
  4. ^ Beaton, Wayne. "EE4J FAQ | The Eclipse Foundation". www.eclipse.org.
  5. ^ "Update on Jakarta EE Rights to Java Trademarks". 3 May 2019.
  6. ^ Chirgwin, Richard (March 4, 2018). "Java EE renamed 'Jakarta EE' after Big Red brand spat". Software. The Register. Retrieved 19 March 2018.
  7. ^ Vaughan-Nichols, Steven J. (March 5, 2018). "Good-bye JEE, hello Jakarta EE". Linux and Open Source. ZDNet. Retrieved 2020-07-10.
  8. ^ a b "JSR 342: Java™ Platform, Enterprise Edition 7 (Java EE 7) Specification". Java Community Process.
  9. ^ Wieldt, Tori. "Introducing Java EE 7: June 12 Kickoff". Archived from the original on 2013-09-13. Retrieved 2013-05-28.
  10. ^ a b "Java Platform, Enterprise Edition (Java EE) Specification, v8" (PDF). Oracle.
  11. ^ "Jakarta EE 8". projects.eclipse.org. 12 August 2019. Retrieved 2020-07-11.
  12. ^ "Jakarta EE 9". eclipse.org. Retrieved 2020-11-23.
  13. ^ "Jakarta EE Platform 9.1". eclipse.org. 18 November 2020. Retrieved 2021-05-25.
  14. ^ "JSR 316: Java™ Platform, Enterprise Edition 6 (Java EE 6) Specification". Java Community Process.
  15. ^ "Required Components". WebProfile. Jakarta EE. Retrieved 2020-07-11.
  16. ^ "Jakarta EE WebProfile". jakarta.ee. Retrieved 2020-07-15.
  17. ^ "Jakarta EE 9 Compatible Products". Jakarta.ee.
  18. ^ "Jakarta EE 8 Compatible Products". Jakarta.ee.
  19. ^ a b c d e f g "Java EE Compatibility". www.oracle.com. Retrieved 2018-08-05.
  20. ^ a b c d e f g "Java EE Compatibility".
  21. ^ a b "Comparing GlassFish Open Source Edition versions 2.x and 3.0.x". Archived from the original on 2012-12-20.
  22. ^ "Java EE Compatibility". Java.sun.com. 2010-09-07. Retrieved 2012-07-18.
  23. ^ "Oracle Weblogic Server 14.1.1". www.oracle.com.
  24. ^ "Oracle Weblogic Server 12.1.1". www.oracle.com.
  25. ^ Lyons, Will; Humphrey, Pieter (2011). "Oracle Web Logic Server 12c: Developing Modern, Lightweight Java EE 6 Applications" (PDF). Archived from the original (PDF) on 2011-12-15. Retrieved 2011-12-03.
  26. ^ "Java EE Compatibility". www.oracle.com.
  27. ^ "JBoss AS 7.1.0.Final "Thunder" released - Java EE 6 Full Profile certified! | My Wiki | Planet JBoss Community". Planet.jboss.org. 2012-02-17. Retrieved 2012-07-18.
  28. ^ "JBoss Application Server - JBoss Community".
  29. ^ "JBoss Application Server - JBoss Community".
  30. ^ "Java EE Compatibility".
  31. ^ "JBoss AS is now EE5 certified!". 15 September 2008. Archived from the original on 20 September 2008. Retrieved 7 August 2016.
  32. ^ "Red Hat JBoss Enterprise Application Platform 7.2 Availability".
  33. ^ Business Wire (2012-06-20). "Red Hat Launches JBoss Enterprise Application Platform 6 to Help Enterprises Move Application Development and Deployment to the Cloud". Business Wire. Retrieved 2012-07-18.
  34. ^ "What's new in WebSphere Application Server V8". Ibm.com. Retrieved 2012-07-18.
  35. ^ a b "IBM WebSphere Application Server Liberty delivers the first production-ready, Java EE 8-compatible application server and broadens support for Spring Boot applications". IBM. Retrieved 12 July 2018.
  36. ^ "Java EE 7 - Tested Configurations- IBM WebSphere Application Server Liberty Profile". Oracle.com.
  37. ^ "Java EE 7 has landed in WAS Liberty - WASdev". 25 June 2015.
  38. ^ "IBM Java EE 6 Web Profile Tested Configurations".
  39. ^ "Apache Geronimo : Index". geronimo.apache.org. January 25, 2010.
  40. ^ "Apache Geronimo fully certified for Java EE 6 - The H Open: News and Features". H-online.com. 2011-11-14. Archived from the original on 20 April 2012. Retrieved 2012-07-18.
  41. ^ "Tested Configurations, Java EE 6 - TMAX JEUS 7". Oracle.com. 2010-09-07. Retrieved 2012-07-18.
  42. ^ "Java EE6 Web Application Server, WAS Software". Us.tmaxsoft.com. Archived from the original on 2012-07-02. Retrieved 2012-07-18.
  43. ^ "Java EE 6 - Tested Configurations, Java EE 6 - Hitachi uCosminexus Application Server v9.0". Oracle.com.
  44. ^ "Fujitsu Interstage Application Server powered by Windows Azure". Archived from the original on August 10, 2011.
  45. ^ "Tested Configurations, Java EE6 - Fujitsu Interstage". Oracle.com. 2010-09-07. Retrieved 2012-07-18.
  46. ^ "Fujitsu Releases Interstage Application Server V10.1". Fujitsu.
  47. ^ "NEC WebOTX Application Server V9.x Certification".
  48. ^ "Apache TomEE". Openejb.apache.org. Retrieved 2012-07-18.
  49. ^ "MarketWatch.com". MarketWatch.com. Retrieved 2012-07-18.
  50. ^ TomEE, Apache. "Apache TomEE 7.0.1".
  51. ^ "Resin Application Server Java EE 6 Web Profile" (PDF). caucho.com. 2011.
  52. ^ "Please Welcome Siwpas as Java EE Certified Option!". Oracle.com. Retrieved 2015-12-07.
  53. ^ "JOnAS 5.3.0 RC1 released". jonas.ow2.org. 2013-01-07. Archived from the original on 2013-10-15. Retrieved 2014-02-25.
  54. ^ "SAP NetWeaver Cloud Java EE 6 Web Profile Certified! (The Aquarium)".
  55. ^ "SAP Software Solutions - Business Applications and Technology".
External links
Wikimedia Commons has media related to Jakarta EE.
Last edited on 30 August 2021, at 16:00
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
HomeRandomNearbyLog inSettingsDonateAbout WikipediaDisclaimers
LanguageWatchEdit