How to configure IBM MQ Resource Adapter on WildFly

This guide will take through the steps required to install IBM MQ Resource Adapter on WildFly and verify the installation with a Docker Image of IBM MQ. To get started, the first thing which is required is the IBM MQ Resource Adapter which can be downloaded from IBM site (you need to register on IBM … Read more

How to inject a Datasource in your Enterprise applications

To inject a Datasource in your Enterprise applications you can use the javax.annotation.Resource annotation to declare a reference to that resource. The @Resource can decorate a class, a field, or a method. The container will inject the resource referred to by @Resource into the component either at runtime or after its initialization. In the following … Read more

How to use a REST WorkItem Handler in jBPM

In jBPM, a Work Item Handler is a Java class that implements the org.kie.runtime.instance.WorkItemHandler interface and can be used to execute some tasks during a Process. jBPM provides some built-in WorkItemHandlers. In this tutorial we will learn how to use one of the most common ones, the REST WorkItem Handler. We will use as starting … Read more

Developing a jBPM 7 Web application example

In this updated tutorial we will learn how to create a Web application using jBPM 7. To build your first business application simply go to http://start.jbpm.org and generate the skeleton projects for your Web application. Once you have downloaded the application, unzip the downloaded archive and go into unzipped directory. You will see the following assets: … Read more

How to execute CLI scripts in WildFly Bootable Jar

WildFly Bootable jar is a plugin that lets you run your WildFly applications into bootable microservice-like components. This tutorial covers how to execute CLI script during the packaging or at runtime, to customize your bootable JAR configuration. There are two ways to run CLI management scripts on the top of your executable Bootable Jar: Execute … Read more

Howto configure a custom Dead Letter Queue (DLQ) in WildFly

The Dead Letter Queue Address (DLQ) is a collector for messages which failed to be delivered over a number of attemps. In WildFly, A dead letter address is defined in the address-setting element of the messaging-activemq subsystem configuration. To read the generic dead letter queue configuration for all destinations (“#”), use the following management CLI … Read more

Monitoring Enterprise applications with OpenShift and Prometheus

This article covers how to monitor Java Enterprise applications using OpenShift Container Platform 4.6. For the purpose of this example, we will be using JBoss Enterprise Application platform Expansion pack which empowers JBoss EAP with Microprofile API, such as the Metrics API. The monitoring solution we will use is Prometheus which is available out of … Read more

Ho to configure proxy settings in WildFly

This tutorial covers how to configure WildFly to use Proxy settings to manage connections through a Proxy and, if needed, Proxy authorization. Configuring WildFly to use Proxy Host settings is not different from any other Java application. Basically you need to include the following System Properties in your start script: http.proxyHost: the host name of … Read more

Monitoring WildFly using VisualVM

In this updated tutorial we will learn how to connect the latest version of WildFly application server using VisualVM monitoring tool. VisualVM is a free tool to monitor and profile Java application. In the past, VisualVM used to be shipped with Oracle JDK 6~8 as Java VisualVM. It has been discontinued in Oracle JDK 9. … Read more

Singleton EJB tutorial

If you need to make sure you are exposing an Enterprise Java  Bean as a Singleton, there is a simple approach which requires adding the @Singleton annotation on your EJB.   As the name implies a javax.ejb.Singleton is a session bean with a guarantee that there is at most one instance in the application. Until … Read more