This repository has been updated to Jakarta EE 11. Compared to the Jakarta EE 10 version, this branch includes:
- Jakarta EE API updated to 11.0.0 and GlassFish upgraded to 8.0.0
- All EJB code replaced with CDI equivalents
- Use of Java
recordtypes where appropriate
- Jakarta EE 10: see the EE10 archive or the EE10 tag.
- Jakarta EE 8: see the EE8 archive or the EE8 tag.
For even earlier examples (prior to Jakarta EE 8), check these repositories:
- Java 21
- Apache Maven 3.x or 4.x (latest)
-
Clone the repository:
git clone https://github.com/hantsy/jakartaee-jaxrs-sample
-
Start the application on GlassFish:
mvn clean package cargo:run -Pglassfish
-
Execute the integration tests using the Arquillian GlassFish managed adapter:
mvn clean verify -Parq-glassfish-managed