Deploy Docker images on Openshift

This tutorial will teach you how you can build and deploy a custom Docker images available on Dockerhub into Openshift Origin Paas. Before reading this tutorial you are suggested to learn how to set up quickly Openshift origin on your machine using “oc cluster up”: Openshift installation quick tutorial So out of the box, Openshift … Read more

Getting started with Windup Migration toolkit

Windup is a a rule-based migration tool which can be used to simply the migration from other major application servers (Weblogic and Websphere) to JBoss EAP/WildFly and to upgrade existing server installations to newer releases. You can run Windup either against the source code of the application or the compiled archive. Windup builds a data … Read more

Hot replacement of your JBoss – WildFly classes using Fakereplace

In this tutorial we will learn how to replace your application’s Java classes running in WildFly / JBoss EAP without re-deployment using a tool named Fakereplace. Replacing your applications while developing them is a need for every developer. Some commerical solutions like JRebel have enhanced this process by making possible it possible for Java developers … Read more

Displaying application server metrics with Grafana

Grafana is a web based framework which lets you create graphs and dashboards from data collected by several various monitoring systems. Grafana specializes in the display and analysis of this data with a lightweight, easy to install, beautiful web interface. In this tutorial we have learnt how to persist some metrics of WildFly into InfluxDB: … Read more

Using InfluxDB from a Java Enterprise application

InfluxDB is a time series database. Thanks to its high performance datastore it is used as a backing store for any timestamped data, including DevOps monitoring, application metrics, IoT sensor data, and real-time analytics. In this tutorial we will learn how to use it in Java running on the top of WildFly. As we said, … Read more

Create a Custom Camel logging handler for WildFly

A Custom logging handler allows you to define a custom destination for your WildFly / JBoss AS 7 server logging events. You would typically define a custom hanlder to log to a Socket, a Database, to a remote location or a JMS Queue. In this tutorial we will learn how to base your custom handler … Read more

Check available services with WildFly

WildFly Services are classes which implement the interface org.jboss.msc.service.Service:   In order to query for active services from the CLI you can query the service-container as follows: /core-service=service-container:dump-services() As the list can be quite verbose, you can launch the CLI command in combination with the grep command from the shell. Here’s for example how to … Read more

Monitoring remote Infinispan caches with Listeners

Event listeners can be used with Infinispan caches to notify remote clients of events happening on the Cache, such as CacheEntryCreated, CacheEntryModified or CacheEntryRemoved. In this tutorial we’ve learnt how to monitor a local embedded Infinispan cache: Monitoring WildFly’s Infinispan caches. The following example shows how a remote client, using the Hot Rod protocol, is able … Read more

Getting the process id (PID) programmatically in Java 9

Java 9 features a simple an portable way to retrieve the process id of the Java Virtual Machine. This can be done through the ProcessHandle which identifies and provides control of native processes. Each individual process can be monitored for liveness, list its children, get information about the process or destroy it. By comparison, Process … Read more