Configuring JVM Settings in a WildFly / JBoss Domain

This tutorial will illustrate how to configure JVM Settings in a WildFly / JBoss EAP Domain The JVM settings of WildFly / JBoss EAP Domain Domain server instances can be configured at different levels: At Host Controller level, at Server Group level and on individual Server level. A default jvm configuration is defined on each … Read more

Creating a Drools Project using kie-drools-archetype

In this short tutorial we will learn how to create a Drools Project using Maven’s kie-drools-archetype. I’ve seen in many forums the questions which is the archetype for creating a Drools project. As you can see from the Maven’s repository (https://mvnrepository.com/artifact/org.kie/kie-drools-archetype) the correct archetype is the following one (in its latest version): <dependency> <groupId>org.kie</groupId> <artifactId>kie-drools-archetype</artifactId> … Read more

Richfaces Java EE 6 application

Important notice: Richfaces framework reached End of Life in 2016. Therefore, you cannot expect fixes or enhancements unless you fork the project and upgrade yourself the framework. We recommend reading these guidelines, if you want to modernize your Richfaces application: How to migrate Richfaces Web applications to another Web UI In this tutorial we will … Read more

How to test with Arquillian, Chameleon and JBoss Forge

In this tutorial we will learn how to set up quickly a test for our Java EE project using Arquillian, Chameleon and JBoss Forge to scaffold our project. First of all some definitions about the tools we will use: JBoss Forge is a software development tool that extends your Java IDE, providing wizards and extensions … Read more

JSF Drag and Drop with Primefaces

 In this tutorial we will learn how to perform Drag & Drop in your JSF applications using PrimeFaces library. Drag & Drop with PrimeFaces Drag-and-drop is an action, meaning grabbing an object and dragging it to a different location. Components capable of being dragged and dropped enrich the Web and make a solid base for … Read more

SSL secured EJBs with Elytron

Elytron security framework enables developers to use an unified security infrastructure to authenticate/authorize your business methods but also to encrypt the communication. In this tutorial we will see how to do that both in an EJB client application which uses remote+https to secure each remote method call. The starting point of this tutorial is a … Read more

Richfaces 4 quick tutorial

Important notice: Richfaces framework reached End of Life in 2016. Therefore, you cannot expect fixes or enhancements unless you fork the project and upgrade yourself the framework. We recommend reading these guidelines, if you want to modernize your Richfaces application: How to migrate Richfaces Web applications to another Web UI The RichFaces project is an advanced … Read more

Using Servlet 4.0 on WildFly

Server push is one core improvements in HTTP/2 which is included in Servlet 4.0 This feature aims aims at improving the perceived performance of the web browsing experience. Server push push is enabled to improved perceived browser performance because servers are in a much better position than clients to know what additional assets (such as … Read more

Using JAX-RS Server Sent Events with WildFly

JAX-RS 2.1 (JSR 370) contains several enhancements like Server Sent Events which will be discussed in this tutorial. Here are in a nutshell the key enhancements provided by JAX-RS 2.1 : Support for Server Sent Events (server and client) JSON Binding (JSON-B) API integration We have already discussed about JSON Binding (JSON-B) in this tutorial … Read more

How to use JSON-B for parsing Java objects to/from JSON

In this tutorial we will learn about JSON-B, which is a standard binding layer for converting Java objects to/from JSON messages, included as part of JSR 367 Specification (Java EE 8). In general terms, there are two main APIs to handle JSON in Java: JSON-P (JSON-Processing, JSR 374): Specifies a very low-level processing library which … Read more