The quickstarts demonstrate Jakarta EE 8 and a few additional technologies from the JBoss Enterprise Application Platform continuous delivery stack. They provide small, specific, working examples that can be used as a reference for your own project.
1. Introduction
These quickstarts run on JBoss Enterprise Application Platform continuous delivery 20. Each quickstart folder contains a README.html
file that describes the quickstart features and provides instructions about how to build and run it.
We recommend that you use the Red Hat JBoss Enterprise Application Platform 7.3 Quickstarts ZIP file, which you can download from the JBoss EAP Continuous Delivery Software Download page on the Red Hat Customer Portal. This version of the quickstarts uses the correct dependencies and ensures that you test and compile against the correct server runtime environment.
Each quickstart folder contains a README.html
file that describes the quickstart features and provides instructions about how to build and run it.
Make sure you read this entire document before you attempt to work with the quickstarts.
2. System Requirements
The applications these projects produce are designed to be run on JBoss Enterprise Application Platform continuous delivery 20 or later.
All you need to build these projects is Java 8.0 (Java SDK 1.8) or later and Maven 3.3.1 or later.
3. Use of EAP_HOME and QUICKSTART_HOME Variables
The quickstart README
files use the replaceable value EAP_HOME
to denote the path to the JBoss EAP Continuous Delivery installation. When you encounter this value in a README
file, make sure you replace it with the actual path to your JBoss EAP Continuous Delivery installation. The installation path is described in detail here: Use of EAP_HOME and JBOSS_HOME Variables
When you see the replaceable variable QUICKSTART_HOME, replace it with the path to the root directory of all of the quickstarts.
4. Suggested Approach to the Quickstarts
We suggest you approach the quickstarts as follows:
-
Regardless of your level of expertise, we suggest you start with the
helloworld.html
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.
5. Getting Started with JBoss EAP for OpenShift
Each quickstart README.html
file contains the basic instructions to build and deploy the quickstart to JBoss EAP for OpenShift or JBoss EAP for OpenShift Online.
See Getting Started with JBoss EAP for OpenShift Container Platform for more detailed information about building and running applications on JBoss EAP for OpenShift.
See Getting Started with JBoss EAP for OpenShift Online for more detailed information about building and running applications on JBoss EAP for OpenShift Online.
6. Run the Quickstarts Using the Maven Command Line
The root folder of each individual quickstart contains a README
file with specific details on how to build and run the example. In most cases you do the following:
-
Optionally, you can build the quickstart archive to test for compile errors.
-
Undeploy the quickstart when you are finished testing.
Important
|
See the README file in each individual quickstart folder for specific details and information on how to run and access the example.
|
6.1. Build the Quickstart Archive
You can follow these steps to build the application to test for compile errors or to view the contents of the archive. See the specific quickstart README
file for complete details.
-
Open a terminal and navigate to the root directory of the quickstart you want to build.
-
Use the following command if you only want to build the archive, but not deploy it.
$ mvn clean install
6.2. Build and Deploy the Quickstart
This section describes the basic steps to build and deploy an application. See the specific instructions in each quickstart README
file for any variations to this process.
-
Make sure you start the JBoss EAP Continuous Delivery server as described in the quickstart
README
file. -
Open a terminal and navigate to the root directory of the quickstart you want to run.
-
Use the following command to build and deploy the archive.
$ mvn clean install wildfly:deploy
6.3. Undeploy an Quickstart
Use the following command to undeploy the quickstart.
$ mvn wildfly:undeploy
7. Run the Quickstarts in Red Hat Developer Studio or Eclipse
You can also start the server and deploy the quickstarts or run the Arquillian tests from Eclipse using JBoss tools. For general information about how to import a quickstart, add a JBoss EAP Continuous Delivery server, and build and deploy a quickstart, see Use Red Hat Developer Studio or Eclipse to Run the Quickstarts.
8. Configure Optional Components
The following components are needed for only a small subset of the quickstarts. Do not install or configure them unless the quickstart requires it.
8.1. Create Quickstart Users
Some of the quickstarts, particularly those that run in a secured mode and demonstrate security, require that you create quickstart users with different roles for authorization purposes. See Create Users Required by the Quickstarts for detailed instructions to create users required by the quickstarts.
8.2. Configure the PostgreSQL Database
Some of the quickstarts that demonstrate transactions require that you install and configure the PostgreSQL database. See Configure the PostgreSQL Database for Use with the Quickstarts for instructions.
8.3. Configure Byteman
A few of the quickstarts use Byteman to demonstrate distributed transaction processing and crash recovery. See Configure Byteman for Use with the Quickstarts for instructions.
9. Table of Available Quickstarts
All available quickstarts, which are listed in the following table, can be found here: https://github.com/jboss-developer/jboss-eap-quickstarts/tree/openshift/.
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 |
---|---|---|---|---|
EJB, EAR, AppClient |
The |
Intermediate |
none |
|
CDI, Batch 1.0, JSF |
The |
Intermediate |
none |
|
CDI, JPA, BV |
The |
Beginner |
none |
|
CDI, JPA, BV |
The |
Beginner |
none |
|
EJB, BMT |
The |
Intermediate |
none |
|
EJB, CMT, JMS |
The |
Intermediate |
none |
|
jQuery Mobile, jQuery, JavaScript, HTML5, REST |
The |
Beginner |
none |
|
JSF, CDI, Deltaspike |
Demonstrate the creation of a custom authorization example using @SecurityBindingType from DeltaSpike |
Beginner |
none |
|
CDI, DeltaSpike |
Shows how to create new beans using DeltaSpike utilities. |
Advanced |
none |
|
JSF, CDI, Deltaspike |
Demonstrate usage of DeltaSpike project stage and shows usage of a conditional @Exclude |
Beginner |
none |
|
EE Security, Servlet, CDI, WildFly Elytron |
The |
Intermediate |
none |
|
Asynchronous EJB |
The |
Advanced |
none |
|
EJB, EAR |
The |
Intermediate |
none |
|
EJB, JSF, WAR |
The |
Intermediate |
none |
|
EJB, EAR |
The |
Advanced |
none |
|
EJB, JNDI |
The |
Intermediate |
none |
|
EJB, Security |
The |
Intermediate |
none |
|
EJB, Security |
The |
Advanced |
none |
|
EJB, Security |
The |
Intermediate |
none |
|
EJB, Security |
The |
Intermediate |
none |
|
EJB, EAR |
The |
Intermediate |
none |
|
EJB Timer |
The |
Beginner |
none |
|
CDI, JSF, JPA, EJB, JTA |
The |
Beginner |
none |
|
EJB, Singleton Deployments, Clustering |
The |
Advanced |
none |
|
JBoss MSC, Singleton Service, Clustering |
The |
Advanced |
none |
|
CDI, Servlet |
The |
Beginner |
none |
|
ClassLoading |
This is a WAR based application showing you how Wildfly let you apply a ClassTransformer to the classes in your enterprise archive. |
Advanced |
none |
|
CDI, JAX-RS, HTML5 |
The |
Beginner |
none |
|
JMS |
The |
Intermediate |
none |
|
CDI, JMX, MBean |
The |
Intermediate |
none |
|
JMS, EJB, MDB |
The |
Intermediate |
none |
|
JMS, EJB, MDB |
The |
Intermediate |
none |
|
Mutual SSL, Undertow |
The |
Intermediate |
none |
|
Mutual SSL, Security, Undertow |
The |
Intermediate |
none |
|
CDI, JSF, RichFaces |
Similar to the |
Beginner |
none |
|
CDI, JAX-RS |
The |
Intermediate |
none |
|
EJB, Singleton |
The |
Beginner |
none |
|
SSL, Undertow |
The |
Beginner |
none |
|
JAX-WS |
The |
Beginner |
none |
|
Hibernate |
The |
Intermediate |
none |
|
Hibernate 4 |
This quickstart performs the same functions as the hibernate quickstart, but uses Hibernate 4 for database access. Compare this quickstart to the hibernate quickstart to see the changes needed to run with Hibernate 5. |
Intermediate |
none |
|
EJB, Security |
The |
Intermediate |
none |
|
EJB, CDI, JSF |
The |
Advanced |
none |
|
JAX-RS |
The |
Beginner |
none |
|
JAX-RS, Security |
The |
Intermediate |
none |
|
JAX-WS |
The |
Beginner |
none |
|
JAX-WS |
The |
Beginner |
none |
|
JAX-WS |
The |
Beginner |
none |
|
JAX-WS |
The |
Beginner |
none |
|
CDI, JSF, JSON-P |
The |
Beginner |
none |
|
JTA, Crash Recovery |
The |
Advanced |
none |
|
JTS, EJB, JMS |
The |
Intermediate |
||
JTS, Crash Recovery |
The |
Advanced |
||
CDI, JSF, JPA, EJB, JAX-RS, BV |
The |
Intermediate |
none |
|
AngularJS, CDI, JPA, EJB, JPA, JAX-RS, BV |
The |
Intermediate |
none |
|
CDI, JSF, JPA, EJB, JAX-RS, BV, EAR |
The |
Intermediate |
none |
|
JSP, JSTL, CDI, JPA, EJB, JAX-RS, BV |
The |
Intermediate |
none |
|
CDI, JSF, JPA, EJB, JAX-RS, BV, i18n, l10n |
The |
Intermediate |
none |
|
Undertow.js, Angular.js |
Based on kitchensink, but uses a Angular for the front end and Undertow.js for the back end. |
Intermediate |
none |
|
Undertow.js, Mustache |
Based on kitchensink, but uses Mustache for the front end and Undertow.js for the back end. |
Intermediate |
none |
|
Logging |
The |
Intermediate |
none |
|
JBoss Logging Tools |
The |
Beginner |
none |
|
JavaMail, CDI, JSF |
The |
Beginner |
none |
|
EE Concurrency Utilities, JAX-RS, JAX-RS Client API |
The |
Beginner |
none |
|
JMS, MDB |
The |
Intermediate |
||
JMS, MDB, Clustering |
The |
Advanced |
none |
|
MicroProfile Config |
The |
Beginner |
none |
|
MicroProfile, Fault Tolerance |
The |
Intermediate |
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 JBoss EAP Continuous Delivery to expose an OpenAPI document for a simple REST application. |
Beginner |
none |
|
MicroProfile OpenTracing |
The |
Beginner |
none |
|
MicroProfile REST Client |
The |
Beginner |
none |
|
CDI, JSF |
The |
Beginner |
none |
|
CDI, JSF |
The |
Beginner |
none |
|
JAX-RS, CDI |
The |
Intermediate |
||
Servlet, EJB, Security |
The |
Advanced |
none |
|
Asynchronous Servlet, CDI, EJB |
The |
Intermediate |
none |
|
Servlet Filter, Servlet Listener |
The |
Intermediate |
none |
|
Servlet, Security |
The |
Intermediate |
none |
|
SFSB EJB |
The |
Intermediate |
none |
|
Spring MVC, JSP, JPA |
The |
Beginner |
none |
|
JSP, JPA, JSON, Spring, JUnit |
The |
Intermediate |
none |
|
JSP, JPA, JSON, Spring, JUnit |
The |
Intermediate |
none |
|
Resteasy, Spring |
The |
Beginner |
none |
|
JSF, JPA |
The |
Intermediate |
none |
|
JPA, JAX-RS |
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 |
|
Web Socket, CDI Events, JSON, SSL |
Demonstrates use of a Javascript WebSocket client, WebSocket configuration, programmatic binding, and secure WebSocket. |
Intermediate |
none |
|
CDI, WebSocket, JSON-P |
Shows how to use WebSockets with JSON to broadcast information to all open WebSocket sessions in JBoss EAP Continuous Delivery. |
Beginner |
none |
|
WebSocket, CDI, JSF |
The |
Beginner |
none |
|
Apache Wicket, JPA |
Demonstrates how to use the Wicket Framework 7.x with the JBoss server using the Wicket Jakarta EE integration, packaged as an EAR |
Intermediate |
none |
|
Apache Wicket, JPA |
Demonstrates how to use the Wicket Framework 7.x with the JBoss server using the Wicket Jakarta EE integration packaged as a WAR |
Intermediate |
none |
|
WS-AT, JAX-WS |
The |
Intermediate |
none |
|
WS-BA, JAX-WS |
The |
Intermediate |
none |
|
WS-BA, JAX-WS |
The |
Intermediate |
none |
|
JAXP, SAX, DOM, Servlet |
The |
Intermediate |
none |