Java EE / Jakarta EE

10 guides · about 1 hour of reading

Jakarta EE (formerly Java EE) is the standards-based enterprise platform that still runs a huge amount of business software, and its specifications — JPA, JAX-RS, JMS, servlets, CDI — underpin Spring and MicroProfile as well. This subject explains the platform's architecture and each major specification with runnable examples, so you can maintain existing systems and understand what the newer frameworks build on.

Who this is for

  • Developers maintaining enterprise Java applications
  • Java developers who want to understand the specifications behind Spring
  • Students studying enterprise architecture

Learning path

Read in order for a complete course, or pick the topic you need.

  1. 1Jakarta EE Architecture: Containers, Profiles and Application ServersHow Jakarta EE is organised — tiers, containers, specifications, profiles, packaging and the javax-to-jakarta namespace change — and how to pick a server.Beginner12 min read
  2. 2Jakarta Servlet 6: Servlets, Filters, Sessions and the Web TierHow the servlet container handles HTTP: servlet life cycle, request and response APIs, filters, listeners, sessions, async processing and Servlet 6.0 changes.Beginner9 min read
  3. 3Jakarta Faces (JSF) 4: Components, Life Cycle and CDI Backing BeansHow Jakarta Faces builds server-rendered UIs: the request life cycle, Facelets templates, CDI backing beans, conversion, validation, Ajax and Faces 4.0 changes.Intermediate10 min read
  4. 4Enterprise Beans 4: Stateless, Stateful and Singleton Session BeansWhat EJB session beans give you — pooling, transactions, security, timers, async calls — how the three kinds differ, and when CDI beans are the better choice.Intermediate9 min read
  5. 5Message-Driven Beans and Jakarta Messaging (JMS 3.1) in the ContainerConsume queues and topics with message-driven beans, send messages with JMSContext, and get transactions, redelivery, selectors and durable subscriptions right.Intermediate9 min read
  6. 6Jakarta Persistence (JPA 3.1): Entities, Mapping and the Persistence ContextHow JPA maps classes to tables: persistence units, the EntityManager and entity states, identifiers, relationships, fetching, cascades, inheritance and locking.Intermediate9 min read
  7. 7JPQL, the Criteria API and Native Queries in Jakarta PersistenceQuery entities with JPQL — joins, fetch joins, aggregates, projections, pagination — build type-safe Criteria queries, and drop to native SQL when you must.Intermediate7 min read
  8. 8Jakarta Transactions (JTA 2): Container-Managed Transactions, Propagation and XAHow JTA transactions work in a Jakarta EE server: isolation, @Transactional propagation, rollback rules, UserTransaction and XA two-phase commit.Intermediate9 min read
  9. 9Jakarta REST (JAX-RS 3.1): Building and Consuming HTTP APIsBuild REST endpoints with Jakarta REST: resources, parameters, JSON binding, Response and status codes, exception mappers, filters, async and the client API.Intermediate8 min read
  10. 10XML in Java: SAX, DOM, StAX and Jakarta XML Binding (JAXB 4)Parse, validate and generate XML in Java: when to use DOM, SAX or StAX, how to bind XML to classes with JAXB 4, and how to harden parsers against XXE.Intermediate7 min read