Building a CDI 2 standalone Java application

In the second article about CDI 2 we will learn how to create a standalone J2SE application featuring CDI2. Let’s get started! Using Context Dependency Injection for J2SE application is something not totally new to developers. For example,before CDI 2 you could start-up the Weld CDI container using the specific classes provided by it. This … Read more

Categories cdi

Arquillian.xml configuration file reference

Here is a table which summarizes the options which you can include into the arquillian.xml configuration file: Property Default Description jbossHome $JBOSS_HOME The JBoss configuration to start. javaHome $JAVA_HOME The Java runtime to use to start the server. modulePath $module.path The location of the module repository. javaVmArguments -Xmx512m -XX:MaxPermSize=128m JVM arguments used to start the … Read more

Introduction to CDI 2.0 API

CDI 2.0 is the new version of Context and Dependency Injection for the Java EE Platform and it’s now in public review status. While you can now grab the specification at: https://jcp.org/aboutJava/communityprocess/pr/jsr365/index.html in this tutorial we will have a first look on running some of its features on the last version of WildFly 10 CDI … Read more

Categories cdi

How to run Tomcat Docker image on Openshift

A common issue when porting Docker images on Openshift is that the image might be engineered to run with a root user. Let’s see how to deal with Security Context Contraints on Openshift. So let’s say you want to try deploying a Docker image like tomcat:latest to Openshift As you can see from the above … Read more

Your first JMS application with Spring Boot

This tutorial will teach you how to create a Spring Boot JMS application which sends messages to ArtemisMQ JMS Server. At the end of it, you will learn how to send messages from a generic Spring Boot application and from a Spring Boot REST Controller. Let’s get started! In order to start, we will create … Read more

Openshift installation quick tutorial

IMPORTANT: This tutorial is now outdated. Openishift origin has been renamed to OKD (Origin Distibution of Kubernates) and this tutorial contains everything to get started on Openshift: Getting started with Openshift using OKD Openshift Origin is the upstream community project that builds up OpenShift platform. Openshift origin is built around a core of Docker container, … Read more

Monitoring Undertow thread pools

Finding out the runtime metrics of Undertow thread pool can be done through the JMX API. Let’s see how to do it. Undertow web server is based on XNIO. The XNIO project provides a thin abstraction layer over Java NIO. In particular it provides two core functionalities: Channel API Management of IO and Worker threads … Read more

How to set up an Infinispan cluster with Docker

In this quick tutorial we will learn how to use Docker to run a cluster of Infinispan servers in no time! First of all, we need to find out the Docker image to pull: $ docker search infinispan INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io/jboss/infinispan-server 2 [OK] The list is quite large, however we … Read more

Managing JBoss and WildFly with Groovy shell

The JBoss/WildFly CLI is quite powerful however that is not the only option available when we are managing the application server with shells. In this tutorial we will learn how to use the Groovy Shell to manage the application server. Why should we replace the beautiful CLI ? Although powerful some limitations with the CLI … Read more

Categories CLI

Configure a local Nexus repository Manager for your JBoss/WildFly artifacts

In this tutorial we will learn how to configure a dedicated Nexus repository Manager to be as proxy server for JBoss’Maven public repository. A Repository Manager is a dedicated server application which can be used to manage repositories of binary components. Using a repository Manager is commonly referred as a best practice providing the following … Read more