How to start an openshift local cluster using oc utility

The OpenShift client utility named oc can start a local OpenShift cluster, which includes all of the required services, such as an internal registry, a router, templates, and so on. This is one of the easiest ways to start a development environment. oc cluster up creates a default user and project, and once it is complete, it will allow you to use any … Read more

How to kill a Java process from Java

Today I had to write a quick code to find out which Java process is using a Port and eventually killed it. You can use it as template in case you have to manage OS process in Linux from Java code: import java.io.BufferedReader; import java.io.InputStreamReader; public class Execute { public static void main(String[] args) { … Read more

How to check if a port is open in Java

Here is a minimalist Java code which can be used to test if a port is available. In this example, we are checking for port 8080 by opening a new Socket to that port. We allow up to 10 retries if the port has been found already used. Enjoy it! import java.io.IOException; import java.net.Socket; public … Read more

JBoss AS 7 ActiveMQ integration

Please note this tutorial has been written for an old version of JBoss application server. If you want to integrate WildFly/JBoss with ActiveMQ broker we recommend checking these tutorials: WildFly – ActiveMQ integration part 1: RAR deployment WildFly – ActiveMQ integration part 2: module installation Finally, if you want to integrate WildFly with Artemis MQ … Read more

How to configure log4j in your ear ?

This article is now obsolete. We recommend checking these resources to learn bout log4j configuration with JBoss / WildFly: How to use Log4j2 in your WildFly applications Using Log4J with WildFly and JBoss EAP Have you got exceptions when tried to configure log4j at application level ? this is due to the fact that JBoss ships … Read more

Introduction to Continuous Integration and Delivery

This tutorial (taken from Hands-On Continuous Integration and Delivery) will provide an overview of the best Continuous Integration and Delivery solutions available to automate organizations builds/deployments/tests There are several terms that are important when trying to learn about Continuous Integration and Continuous Delivery: Definition of Automation Automation is essentially any task that is completed without … Read more

How to monitor JBoss 5 graphically ?

This tutorial has been written for an old version of JBoss AS 5. At the bottom of it, you will find how to monitor JBoss 5 from the JMX-Console. If you are running WildFly or JBoss EAP 7, we recommend the following updated resources: Monitoring Enterprise applications with OpenShift and Prometheus Monitoring WildFly with Prometheus … Read more

How to populate a dataTable from a JSON file

How to use natively JSON data into a JSF dataTable ? When using Primefaces you have more than one option to do it! The JSF dataTable tag is used to display data on JSF view pages. The data bound table components are responsible for displaying the relational data in a tabular format. typically a dataTable … Read more

Richfaces calendar example

Important notice: Richfaces framework reached End of Life in 2016. Therefore, you cannot expect fixes or enhancements unless you fork the project and upgrade yourself the framework. We recommend reading these guidelines, if you want to modernize your Richfaces application: How to migrate Richfaces Web applications to another Web UI The  <rich:calendar>   component is used … Read more

RichFaces tree example

Important notice: Richfaces framework reached End of Life in 2016. Therefore, you cannot expect fixes or enhancements unless you fork the project and upgrade yourself the framework. We recommend reading these guidelines, if you want to modernize your Richfaces application: How to migrate Richfaces Web applications to another Web UI RichFaces tree component is designed … Read more