Mail session configuration on WildFly

In this simple tutorial we will show how to use the Java Mail service from WildFly – JBoss EAP, either connecting to a local SMTP server or using Google SMTP server. Let’s start configuring JBoss Mail service on WildFly, then we will see how to configure the service on older application server versions. WildFly Mail service configuration … Read more

How to manage JBoss / WildFly remotely

In this article we will learn how you can manage a JBoss / WildFly application server remotely. There are several alternatives to access a running JBoss / WildFly server remotely. Prerequisites First, set the IP Address jboss.bind.address.management to your machine’s address As an alternative, you can use the 0.0.0.0 address which will use all the … Read more

How to intercept JVM shutdown in a Container

Java applications can require some cleanup / checks before the JVM is stopped. In this tutorial we will learn how to intercept a JVM shutdown in a container such as WildFly / JBoss EAP or Quarkus. When the shutdown is intercepted, we will execute some cleanup work before the JVM finishes shutting down.

Read more

How to manage tmp and data folder in WildFly

WildFly / JBoss EAP application storage is contained under each server installation. For standalone mode that means:

standalone/
├── configuration
├── data
├── deployments
├── lib
├── log
└── tmp

As you start deploying applications, you will see that the folders “data”, “log” and “tmp” start growing. In this tutorial we will learn how to manage the storage of the application server and which files or folders are safe to be deleted.

Read more

Cannot connect to WildFly CLI? a simple way to solve it

One common issue when you are starting to use WildFly is the following issue. You have tried connecting to the CLI: $ ./jboss-cli.sh -c However the following error is returned: Failed to connect to the controller: The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+http://localhost:9990. The connection failed: WFLYPRT0053: Could … Read more

Reading properties from a configuration folder in WildFly

There are several approaches for reading properties from a directory in WildFly. We will show in this tutorial two alternative solutions: Reading properties from a file using MicroProfile Config API The recommended solution for Microservices deployments is to use the Eclipse MicroProfile Config which is a solution to externalise configuration from microservices. The config properties … Read more