Installing WildFly Application Server

In this tutorial we will learn how to install WildFly application server. WildFly runs on top of the Java platform therefore it needs at least a Java Runtime Environment (JRE) to run. If you want to compile and build Java web applications, you will also need the Java Development Kit (JDK), which provides the necessary … Read more

Configuring JBoss Farming service

JBoss farming service was available for early versions of the application server. such as JBoss 4 and JBoss 5. This tutorial discusses how to configure it and which are the alternatives available for new versions of the application server. What is JBoss Farming Service? The farming service is an hot-deploy feature available in the “all” … Read more

Getting started with jBPM Business Central

In this tutorial we will learn how to install the JBPM Business Central (which is the new name for the Drools workbench) and the Kie Execution Server on WildFly so that you have a full blown environment for designing and deploying your Kie assets! The Business Central Workbench (Drools Workbench) is a web application where … Read more

Getting started with Drools Decision Tables

Drools Decision Tables are a compact way of representing conditional logic, and they can be used in Drools to define business rules. In this tutorial we will learn how to design and test them with an example. A Drool Decision Table is a way to generate rules from the data entered into a spreadsheet. The … Read more

Hibernate fetching performance tuning

Joining tables in SQL is the foundation of a relational database, as joins allow you to actually model relationships between tables. In plain JDBC, joins between tables are composed using native SQL statements. On the other hand, when using Hibernate/JPA this is greatly simplified as you will specify the relation between tables in terms of … Read more

Getting started with GraalVM

GraalVM is an extension of the Java Virtual Machine that is able to support several languages and execution modes. The Graal project includes a new high performance Java compiler, called Graal, which can be used in a just-in-time configuration on the HotSpot VM, or in an ahead-of-time configuration on the SubstrateVM. The main advantages of … Read more

How to capture WildFly lifecycle notifications

This tutorial describes how to capture lifecycle events notifications in WildFly 11 and above. Since WildFly 11 it’s much easier to capture JMX notifications of the server lifecycle events. Each time that an event like start/stop/resume etc. happens, the application server will send an AttributeChangeNotifications on the object named “jboss.root:type=state“. If you have subscribed to … Read more

WebSocket HelloWorld example

Web applications were originally based on the request/response pattern: the client sends a request and the server processes data before sending a response; hence, the client is forced to wait for a server response. The main disadvantage of this approach is that a full reload of the web page is required between each request and … Read more

How to debug module loading in WildFly

In this tutorial you will learn how to debug the list of WildFly modules loaded at boot. In order to do that, you need to increase the level of logging on the namespace “org.jboss.modules” so that it will log information about a particular class being loaded and the module from which it comes. /subsystem=logging/logger=org.jboss.modules:add(level=TRACE)  Now … Read more