Skip to content

iverhun/wildfly-tutorial

Repository files navigation

wildfly-tutorial

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

Creating a wildfly project from scratch

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.

Building the application

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.

Running the application

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/

Testing the application

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.

About

Code example for the Lviv JavaClub [Event 323]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published