How to create a Web application from the command line

One of the simplest choices to create a Java Web application with Maven is the maven-archetype-webapp. This archetype provides a minimal skeleton for creating a Web application. To create an application using this archetype in batch mode, you can use the following command: Here is the resulting project: Within the webapp folder, you can add … Read more

How to set the maximum number of Web connections in WildFly

The max-connections attribute sets the amount of concurrent connections that can be processed by an Undertow listener. You can apply to any of your available connectors. For example, to set the maximum number of connections for the HTTP connector from WildFly / JBoss CLI execute: The configuration will be updated as follows: If your configuration … Read more

JPA vs Hibernate in a nutshell

A fairly common question for developers approaching Object Relational Mapping (ORM) tools like Hibernate is what is the difference between Hibernate and JPA. In this article we are going to explain it in a nutshell. From an high level view, JPA is just like an interface without a concrete implementation of it. On the other … Read more

Configuring Strict Transport Security (HSTS) on WildFly

HSTS stands for HTTP Strict Transport Security. It is a method used by websites to declare that they should only be accessible using a secure connection (HTTPS). If a website declares an HSTS policy, the browser should reject all HTTP connections and prevent users from accepting insecure SSL certificates. In this tutorial we will learn how to configure in on WildFly Web server.

Read more

What’s new with Quarkus 2.0 and how to get started quickly

Quarkus 2.0 has been released! In this article, we will cover the highlights of the new major version and the requirements to get started or migrate to this exciting new version. Quarkus 2.0 aims to bring ease of development at an even higher level. There are several improvements in the tooling area and the major … Read more

Hot to solve the “Too many Open Files” error in Java applications

This tutorial will discuss how to fix one of the most common errors for Java applications: “Too many open files“. The error Java IOException “Too many open files” can happen on high-load servers and it means that a process has opened too many files (file descriptors) and cannot open new ones. In Linux, the maximum … Read more