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

How to configure JBoss to bind to a different IP ?

If you want to change the jboss.bind.address property use the “-b” option in when calling the JBoss startup script (run.sh or run.bat in the bin directory). On WildFly and JBoss EAP you can bind the public interfaces using: standalone.sh -b 192.168.0.1 On the other hand, you can bind Management Interfaces using: standalone.sh -bmanagement 192.168.0.1 Older JBoss versions (4-5-6): … Read more

JBoss / WildFly XML descriptors reference

WildFly uses a set of custom XML descriptors which can be used to customize Enterprise applications. Today they are not used so widely as once, because they have been replaced by their equivalent annotations. Though it can be useful to have a reference to most common XML configuration file, if you prefer to maintain your … Read more

What is JBoss and what is used for?

In this tutorial we will learn what is JBoss and what is JBoss used for. The word JBoss is quite generic. In the beginning it was used to reference a Community Opensource project called “JBoss” developed by the JBoss Inc. which was later acquired by Red Hat in 2006. Since JBoss org. was acquired by … Read more

JBoss MBeans POJO

UPDATE: This tutorial has been written for JBoss AS 5. MBeans POJO are not available anymore in WildFly application server. Their main purpose was to create Singleton-like behaviour in applications. You can replace them with EJB Singleton. Read this tutorial to learn more: Singleton EJB tutorial JMX MBean services are the core building blocks of … Read more

Using WildFly core as management interface

WildFly core is the core runtime that is used by the Wildfly application server. It provides some minimal functionalities such as the classloader, JMX Api and the security framework (Elytron). Besides it, you can use it as Management endpoint. In this tutorial we will learn how to install it and use it as Management interface … Read more