Demystifying Datasource JTA and XA settings on JBoss-WildFly

One topic which is often misunderstood by middleware administrators is the configuration of JTA and XA attributes and their effect on transactions. Let’s see more in practice. Basically on a JBoss AS 6/WildFly configuration you can choose three different strategies as far as transactioons are concerned: 1) Setting jta = false and Non-XA datasource <datasource jta=”false” … Read more

Configuring JBoss EAP 6 – WildFly to use TCP for messaging

This tutorial shows how to use TCP for initial discovery and communication between cluster nodes of HornetQ servers running on JBoss EAP 6 / WildFly 8 First of all, let’s see the default mechanism used by the HornetQ messaging broker in JBoss/WildFly: As you can see, the first step is server discovery and it’s done … Read more

Using Spring Retry to consume REST Services

Spring-retry is one of the many side-projects of Spring: the famous dependency injection framework. This library let us automatically re-invoke a method, moreover this operation it’s trasparent to the rest of our application. In this post I will try to illustrate the main features of this API, using a simple example. Setup To add Spring-retry to … Read more

Using Camel with WildFly – part 2

This is the second part tutorial about using Camel with WildFly. We will now learn how to use Camel routes within our applications. First of all, check that you have installed Camel subsystem as described in this tutorial: Riding the Camel with WildFly application server Using Camel with Java EE CDI applications is even easier than … Read more

Riding the Camel with WildFly application server

This tutorial describes how you can integrate Apache Camel in your WildFly Application Server configuration. At the end of this tuorial you will be able to turn your WildFly application server into a mini service bus! First of all, you need to grab the WildFly-camel bundle which is available at https://github.com/wildfly-extras/wildfly-camel Simply unzip the tar.gz file … Read more

Configuring a JMS Queue example in JBoss 5

Note: This tutorial has been written for JBoss AS 5. To learn how to configure a JMS Queue / Topic in WildFly or JBoss EAP 7 we recommend checking this tutorial: JBoss JMS configuration The following article shows how to create a simple JMS Queue Producer and Consumer. This example uses JBoss Initial Context to … Read more

Using Hibernate/JPA with MongoDB

Hibernate OGM is a framework that lets you use the power of JPA and Hibernate API with a NoSQL database like MongoDB. To make it fun, we will deploy the JPA MongoDB application on WildFly application server. First of all some basics. What is Hibernate OGM ? Hibernate Object/Grid Mapper (OGM) is a framework which … Read more

Creating a Datasource on WildFly using the Web Console

Creating a Datasource for WildFly 9 is a pretty simple task thanks to the templating wizard that is included on the Web console. First of all you need to download WildFly from http://wildfly.org/downloads/ Let’s see how to configure an Oracle 12c Connection using the ojdbc7.jar Driver. There are multiple strategies for configuring a Datasource, the faster one … Read more