Finding which Java threads are consuming your CPU

Are your Java threads consuming most of your CPU and want to find which one is actually consuming most of it? Then just keep reading. There are several solutions to detect which Java thread is consuming more CPU. Use JVisualVM to find CPU consuming threads If you have installed JVisualVM, then you can connect to … Read more

How to manage the lifecycle of a Quarkus application

CDI Events allow beans to communicate so that one bean can define an event, another bean can fire the event, and yet another bean can handle the event.Let’s see how we can take advantage of this to manage the lifecycle of a Quarkus application. Start from a basic Quarkus project: mvn io.quarkus:quarkus-maven-plugin:1.3.2.Final:create \ -DprojectGroupId=com.sample \ … Read more

A simple example of MicroProfile REST Client API

MicroProfile REST Client API provides a type-safe approach to invoke RESTful services over HTTP. It relies on JAX-RS APIs for consistency and easier reuse, therefore you won’t need a specific extension to be added in WildFly to use this API. Let’s see a sample application which is composed of a Server Endpoint and a REST … Read more

How to install Tomcat Web Valves on JBoss

Important notice: this tutorial has been written for JBoss EAP 6 and JBoss AS 7. Apache Valves are not available anymore in WildFly application server. You can replace them with Undertow Handlers. Check this tutorial for more information: Converting Tomcat Valves to Undertow Handlers This tutorial shows how to create a Tomcat Valves and install … Read more

Getting started with OpenAPI on WildFly

The Microprofile OpenAPI can be used to document your REST endpoint using annotations or a pre-generated JSON in a standard way. In this tutorial we will learn how to leverage this API on applications deployed on WildFly. Documenting REST Services is extremely useful since, as it follows a standard, it can be used in a … Read more

Getting started with Infinispan Command Line Interface

The version 10 of Infinispan features a brand new server replacing the WildFly-based server with a smaller, leaner implementation. In this tutorial we will check how to use its Command Line Interface to connect to an Infinispan cluster First off, let’s check some of the highlights of Infinispan 10: Reduced disk (50MB vs 170MB) and … Read more

How to build and deploy Microprofile applications on Wildfly

WildFly provides support with the latest version of Microprofile API. This means you can combine the Jakarta EE API which is included in WildFly modules with the MicroProfile API to provide advanced Enterprise application. Let’s check in this tutorial how to build applications which use the Microprofile API. The recommended way to build and deploy … Read more

Using JWT Role Based Access Control with WildFly

WildFly 19 includes support for Microprofile JWT Api. In this tutorial we will see how to set up and deploy a REST Application which uses Microprofile JWT for Role Based Access Control. The application will run on the top of Wildly 19 and uses Keycloak as Identity and Access management service. Today, the most common … Read more

ModeShape quickstart tutorial

ModeShape is an open source implementation of the JSR-283 specification and standard JCR API. This tutorial will provide a basic introduction to the ModeShape framework and the JCR specification.

Read more