The quickstarts demonstrate {javaVersion} and a few additional technologies from the {productNameFull} stack. They provide small, specific, working examples that can be used as a reference for your own project.
These quickstarts run on the WildFly application server. The quickstarts are configured to use the correct Maven dependencies and ensure that you test and compile the quickstarts against the correct runtime environment.
Each quickstart folder contains a README.adoc
file that describes the quickstart features and provides instructions about how to build and run it. Instructions are provided to build the more readable README.html
files.
Make sure you read this entire document before you attempt to work with the quickstarts.
The applications these projects produce are designed to be run on {productNameFull} {productVersion} or later.
All you need to build these projects is {buildRequirements}.
The quickstart README
files use the replaceable value WILDFLY_HOME
to denote the path to the WildFly server. When you encounter this value in a README
file, make sure you replace it with the actual path to your WildFly server.
When you see the replaceable variable QUICKSTART_HOME, replace it with the path to the root directory of all of the quickstarts.
Before you begin, you must perform the following tasks.
-
Build the WildFly Server (Optional): This step is only required if you plan to run the latest development version of the WildFly server. It is not required if you are running a tagged or released version of the WildFly server.
-
Build and Install the WildFly BOMs (Optional): This step is only required if you are building a development version of the WildFly server and see dependency issues when you build the quickstarts. It is not required if you are running a tagged or released version of the WildFly server.
-
Build the Quickstart README.html Files (Required): The quickstart
README
files are written in AsciiDoc to provide modular, reusable content; however, this makes them difficult to read. For this reason, you must also build the quickstartREADME.html
files from the AsciiDoc source.
If you have downloaded a tagged or released version of the WildFly server, you can ignore this step. You can simply extract the WildFly server from the compressed file and start the server from that directory.
If you plan to run the development version of the WildFly server, you must first download and build the WildFly server from source.
-
If you have not yet done so, you must clone WildFly server repository and navigate to it. You might also want to change the remote name from
origin
toupstream
to be consistent with your other repositories.$ git clone [email protected]:wildfly/wildfly.git $ cd wildfly $ git remote rename origin upstream
-
Verify that your local
master
branch contains the latest updates.$ git fetch upstream $ git checkout master $ git reset --hard upstream/master
-
Build the WildFly server using the following command.
$ mvn clean install -DskipTests -Denforcer.skip=true -Dcheckstyle.skip=true
-
The WildFly server folder and ZIP files, which are named
wildfly-VERSION-SNAPSHOT
andwildfly-VERSION-SNAPSHOT.ZIP
respectively, are located in thebuild/target/
directory. You can copy that folder or unzip the file to another location or start the server from that directory.
If you have downloaded and are running a tagged or released version of the quickstarts, you can ignore this step because the required BOMs are already installed in Maven.
If you are using the latest development version of the quickstarts and you are able to successfully build and deploy the quickstarts, you can also ignore this step because the required BOMS are already installed in Maven.
However, if you are using the latest development version of the quickstarts and you see build errors indicating missing dependencies, you must first build the latest WildFly server and then build and install the WildFly BOMs. This installs the latest Maven artifacts that are required by the SNAPSHOT version of the WildFly quickstarts that are still under development.
-
If you have not yet done so, clone WildFly BOMs repository and navigate to it. You might also want to rename the directory to
wildfly-boms
to make it clear which BOMs it contains and also change the remote name fromorigin
toupstream
to be consistent with your other repositories.$ git clone [email protected]:wildfly/boms.git $ mv boms wildfly-boms $ cd wildfly-boms $ git remote rename origin upstream
-
Verify that your local
master
branch contains the latest updates.$ git fetch upstream $ git checkout master $ git reset --hard upstream/master
-
Build the WildFly BOMs using the following command.
$ mvn clean install
NoteIf you run into build errors, check with the WildFly team to see if the repositories are temporarily out of sync. -
At this point, you can verify that all of the quickstarts build using the following command.
$ mvn clean install '-Pdefault,!complex-dependencies'
The quickstart README
files are written in AsciiDoc, not only because the language is much more powerful than Markdown, but also also because it is possible to extract common instructions into separate files to be reused across the quickstarts. While this makes them more flexible and easier to maintain, unfortunately, included files do not render in a readable format in GitHub or in most text editors.
The Maven plugin that is used to build and deploy the quickstarts can also generate fully rendered README.html
instructions from the README.adoc
files.
To build all of the quickstart README.html
files, including the root README.html
file that contains the table with links to all available quickstarts, navigate to the root folder of the quickstarts and run the following command.
$ mvn clean package -Pdocs
Tip
|
To build the |
If you see errors about missing dependencies, check the prerequisites section to determine whether you need to build the WildFly BOMs that corresponds to the version of the quickstarts that you are using.
We recommend that you approach the quickstarts as follows:
-
Regardless of your level of expertise, we suggest you start with the
helloworld
quickstart. It is the simplest example and is an easy way to prove the server is configured and running correctly. -
If you are a beginner or new to JBoss, start with the quickstarts labeled
Beginner
, then try those marked asIntermediate
. When you are comfortable with those, move on to theAdvanced
quickstarts. -
Some quickstarts are based upon other quickstarts but have expanded capabilities and functionality. If a prerequisite quickstart is listed, make sure you deploy and test it before looking at the expanded version.
The root folder of each individual quickstart contains a README.html
file with detailed instructions on how to build and run the example.
The sources for all available quickstarts, which are listed in the following table, can be found here: {githubRepoUrl}.
Each quickstart provides the list of technologies demonstrated by the quickstart and the required experience level needed to build and deploy it. Click on the quickstart link in the table to see more detailed information about how to run it. Some quickstarts require deployment of other quickstarts. This information is noted in the Prerequisites
section of the quickstart README.html
file.
Note
|
Some of these quickstarts use the H2 database included with WildFly. It is a lightweight, relational example datasource that is used for examples only. It is not robust or scalable, is not supported, and should NOT be used in a production environment! |
Quickstart Name | Demonstrated Technologies | Description | Experience Level Required | Prerequisites |
---|---|---|---|---|
CDI, JPA, BV |
The |
Beginner |
none |
|
EJB, CMT, JMS |
The |
Intermediate |
none |
|
EE Security, Servlet, CDI |
The |
Intermediate |
none |
|
EJB, Security |
The |
Advanced |
none |
|
EJB, Security |
The |
Intermediate |
none |
|
CDI, Servlet |
The |
Beginner |
none |
|
Mutual TLS, Undertow |
The |
Intermediate |
none |
|
Mutual TLS, Security, Undertow |
The |
Intermediate |
none |
|
JAX-WS |
The |
Beginner |
none |
|
JAX-RS |
The |
Beginner |
none |
|
JAX-RS, Security |
The |
Intermediate |
none |
|
CDI, JSF, JPA, EJB, JAX-RS, BV |
The |
Intermediate |
none |
|
MicroProfile Config |
The |
Beginner |
none |
|
MicroProfile Health |
The |
Beginner |
none |
|
JWT, Security, MicroProfile |
The |
Intermediate |
none |
|
MicroProfile Metrics |
The |
Beginner |
none |
|
MicroProfile OpenAPI |
This guide demonstrate how to use the MicroProfile OpenAPI functionality in {productName} to expose an OpenAPI document for a simple REST application. |
Beginner |
none |
|
MicroProfile OpenTracing |
The |
Beginner |
none |
|
MicroProfile Reactive Messaging |
The |
Beginner |
none |
|
MicroProfile REST Client |
The |
Beginner |
none |
|
CDI, JSF |
The |
Beginner |
none |
|
Servlet, EJB, Security |
The |
Advanced |
none |
|
Servlet, Security |
The |
Intermediate |
none |
|
CDI, JSF, SLSB EJB |
The |
Beginner |
none |
|
Batch, CDI, EE Concurrency, JAX-RS, JMS, JPA, JSON, Web Sockets |
A thread racing web application that demonstrates technologies introduced or updated in the latest Jakarta EE specification. |
Beginner |
none |
|
JPA, JAX-RS, OpenShift, Galleon |
The |
Intermediate |
none |
|
WebSocket, CDI, JSF |
The |
Beginner |
none |