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 to your machine’s address As an alternative, you can use the 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 set and load Properties in WildFly ?

In this tutorial we will cover how to load System Properties or Application Properties running on WildFly Application Server. There are mainly three strategies to load Properties in WildFly: Add the System Properties as JVM arguments to the start up script Include the System Properties in WildFly Configuration Include the Application Properties in a module … Read more

Find out the JBoss version you are running

Apparently this seems a silly question, however at a job interview you might be surprised to hear the question: “How to check the JBoss version you are running ?“. Let’s see how to find it out. Firstly, if you have access to the server logs, this information is printed in the server.log file at startup: … 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:

├── 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

How to Start, Stop and Restart WildFly

This guide contains some tips to teach you how to start, stop, restart WildFly application server First of all, WildFly can be run in two modes: Standalone mode and Domain mode. Booting WildFly in Standalone mode You can start WildFly as follows. Move into the bin folder of your installation and run: $ ./ The … Read more

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

Top JBoss Interview questions (2021)

Are you going for a JBoss / WildFly interview ? here is a comprehensive list of JBoss / WildFly interview questions that will shake up your hiring! General JBoss interview questions Q: Name all possible ways you know to start WildFly application server At least four ways: Option 1) Download and unzip WildFly from … 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: $ ./ -c However the following error is returned: Failed to connect to the controller: The controller is not available at localhost:9990: WFLYPRT0053: Could not connect to remote+http://localhost:9990. The connection failed: WFLYPRT0053: Could … Read more

How to increase the Transaction Timeout in JBoss / WildFly

Transaction timeout in WildFly / JBoss can be configured in the transactions subsystem or at EJB level. When the transaction is configured in the transactions subsystem it will be the default transaction timeout for all JTA transactions. When configured at EJB level, the timeout will be specific of that EJB. Configuring Transaction timeout in the … Read more