WebSphere Tutorial · WebSphere Basics · Lesson 2 of 23

What an Application Server Provides

The Jakarta EE (formerly Java EE) services WebSphere gives applications: servlets, REST, CDI, JPA, JDBC data sources, transactions, messaging and security.

Members can save this page, take notes and track progress. See membership · Sign in

Jakarta EE in one page

Enterprise Java applications are written against standard APIs that the server implements:

API What it does
Servlets, Jakarta REST (JAX-RS) Handle HTTP requests and build REST APIs
CDI Dependency injection: the server creates and wires objects
JPA, JDBC Database access through data sources with connection pools
JTA Transactions across databases and queues
Jakarta Messaging (JMS) Queues and topics
Jakarta Security Authentication and authorisation

The application ships as a WAR (web module) or EAR (several modules). It asks the server for resources by name through JNDI or injection, so the same application can run in different environments with different databases.

In 2019 Java EE moved to the Eclipse Foundation as Jakarta EE; from Jakarta EE 9 the packages changed from javax.* to jakarta.*, which matters when moving older applications to newer servers.

What the server gives an application versus what it brings itselfTry it yourself
provided_by_server = {"HTTP listener", "thread pool", "connection pool", "transactions", "security", "JNDI"}
app_needs = ["HTTP listener", "connection pool", "transactions", "security", "PDF rendering"]
for need in app_needs:
    source = "server (configured, not coded)" if need in provided_by_server else "application library"
    print(f"{need:16} -> {source}")

Output

HTTP listener    -> server (configured, not coded)
connection pool  -> server (configured, not coded)
transactions     -> server (configured, not coded)
security         -> server (configured, not coded)
PDF rendering    -> application library

Test yourself

From Jakarta EE 9 on, what changed for application code?

  1. Java was no longer required
  2. Package names moved from javax.* to jakarta.*
  3. Servlets were removed
  4. Applications must be EAR files
Show answer

Answer: Package names moved from javax.* to jakarta.*

The namespace change is the main migration step for older applications.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake