How to create a Custom JBoss Login Module

This tutorial is a simple walk through the creation of a custom Login module with JBoss EAP 6 / WildFly application server. Note: If you want to develop a custom login module on the latest security infrastructure (Elytron) we recommend checking also this tutorial: How to create a custom Elytron Realm Getting Started with PicketBox … Read more

Configuring a MongoDB Login Module

Creating a Login Module with JBoss AS 7 or WildFly can be done by extending some of the available PicketBox Login modules. See this tutorial for a quick introduction to Custom Login modules: Creating a Custom JBoss Login Module. Here we will learn how to create a custom Login Module which used MongoDB for performing … Read more

How do you set logging verbosity with JBoss 5 ?

The amount of logging is controlled by categories. Categories are named entities, which follow a hierarchical naming rule similar to Java packages. For example, the category named com.sample is a parent of the category named com.sample.Test . Similarly, java is a parent of java.util and an ancestor of java.util.Vector. Let’s see some samples of categories: … Read more

Load Balancing EJBs in WildFly

One of the main advantages of using clustered Session Beans is that load can be spread across several cluster members. This by default happens on a random basis. Today we will learn how to customize the Session bean load balancing in WildFly or JBoss EAP 6. By default, calls from a client to a cluster … Read more

Monitor WildFly with CLI and your bash skills

There are actually many free and opensource tools for monitoring the jboss/wildfly application server. In this article we will learn how to create a monitoring shell using as little as jboss cli and bash and awk. In some scenarios you have to monitor one or two key attributes of the application server configuration and receive … Read more

WildFly – ActiveMQ integration part 1: RAR deployment

This tutorial describes how you can configure the ActiveMQ 5 resource adapter on WildFly with a few simple steps. [Please note, if you want to integrate ActiveMQ Artemis, then check this tutorial: How to connect WildFly to a remote ActiveMQ Artemis server?] A Resource adapter is a Java EE component that implements the Connector architecture (JCA) … Read more

Dispatching commands on WildFly cluster

This tutorial has been updated, thanks to the suggestions received on developer.jboss.org. We thank our readers for reporting any issue found in our tutorials. This is the second article about WildFly clustering API. You can read here the first tutorial: Monitoring a cluster using WildFly API. In this article we will learn how to execute commands … Read more

Monitoring a cluster using WildFly API

WildFly 8 introduces a new API which can be used to gather information about the WildFly cluster topology and receive notifications when new nodes leave or join the cluster.   The org.wildfly.clustering.group.Group interface can be used for this purpose: The Group service provides a mechanism to view the cluster topology and to be notified when … Read more

Monitoring a JBoss Domain using JBoss Operations Network

As per definition, in a JBoss AS 7/WildFly Domain there can be at most one Domain Controller, which is in charge to manage the other Host Controllers and the Domain configuration. In this tutorial we will show how to check for the Domain Controller availability using JBoss Operations Network and get a notification in case … Read more