The wildfly-tutorial
project is a simple Jakarta EE application with a HTTP endpoint that is running in
WildFly.
This tutorial is an illustration for the Lviv JavaClub [Event 323] WildFly a modular application server presentation.
Special credits to Hantsy Bai(@hantsy) for the best repo with working examples: https://github.com/hantsy/jakartaee10-starter-boilerplate
You may use one of the WildFly maven archetypes to generate project structure and sample code from scratch:
https://github.com/wildfly/wildfly-archetypes/tree/main
The src/main
folder contains a simple 'Hello world' style Jakarta EE application using JAX-RS.
To run the application, you use Maven:
mvn clean package
Maven will compile the application, provision a WildFly server
The WildFly server is created in target/server
with the application deployed in it.
To run the application, run the commands:
cd target/server
./bin/standalone.sh
Once WildFly is running, the application can be accessed at http://localhost:8080/
To run integration tests to verify the application, you use Maven:
mvn clean package verify
Tests in src/test
are run against the server in target/server
.