Skip to content

hantsy/jakartaee-rest-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jakarta REST Example

build

The repository has already been upgraded to Jakarta EE 11.

For the example projects before Jakarta EE 8, check the following repositories instead.

Compared to the previous Jakarta EE 10 version, the following changes are applied:

  • Update Jakarta EE API to 11.0.0 and Glassfish to 8.0.0
  • Replace all EJB codes with pure CDI codes
  • Use record type as possible

Prerequisites

  • Java 21
  • The latest Apache Maven 3.x or 4.x

Build

  1. Clone a copy of the source codes.

    git clone https://github.com/hantsy/jakartaee-jaxrs-sample
  2. Run on Glassfish.

    mvn clean package cargo:run -Pglassfish
  3. Run Integration Tests against Arquillian Glassfish Managed Adapter

    mvn clean verify -Parq-glassfish-managed

Reference