Configuring a Cluster of Artemis MQ servers

In this tutorial we will learn how to learn how to install and configure a cluster of Artemis MQ servers. ArtemisMQ is the default broker for WildFly 10 and it’s based on the former HornetQ messaging broker. As for HornetQ, you can either run a cluster of brokers embedded into the application server or as … Read more

Consuming messages from a remote WildFly JMS Server

Consuming messages from a remote Wildfly JMS Server can be done in several ways. In this tutorial we will learn all possible approaches and compare the advantages/disadvantages. In order to connect and consume messages from a remote JMS Server you have mainly three options: Use a JMS Bridge: This approach is discussed in this tutorial: Configuring … Read more

Sending JMS Messages over XA with WildFly – JBoss AS

This short tutorial shows how you can send JMS messages as part of an XA Transaction with JBoss AS / WildFly. Messages running as part of an XA Transaction are coordinated by a Resource Manager along with other resources which are partecipating to the XA Transaction. In order to do that, you need to use … Read more

JMS Clustering in WildFly and JBoss EAP

In this tutorial we will learn how to achieve High Availability in JMS clustering, comparing the configuration available with Hornetq messaging (AS 7 – WildFly 8 – JBoss EAP 6) and Artemis-mq (WildFly 10 or newer and JBoss EAP 7) In order to achieve high availability, you have the choice between using a shared store … Read more

How to read WildFly and JBoss EAP messaging journal

HornetQ ships with its high performance journal which uses a binary format. We can however have a look through the journal with some helper classes which are bundled in HornetQ JAR files that are part of JBoss EAP and WildFly distribution. The helper classes which can be used to inspect the journal are located in … Read more

Configuring message redelivery on JBoss – WildFly

In this tutorial we will discuss about the effect of using PERSISTENT or NON_PERSISTENT message delivery on JBoss EAP 6/7 or WildFly. By default, if you are sending a JMS message without any parameter, the PERSISTENT mode will be used: public void sendMessage() { try { MessageProducer producer = session.createProducer(queue); TextMessage message = session.createTextMessage(“my message”); … Read more

A JMS Browser for JBoss-WildFly

JBoss AS 7 and WildFly are missing a native interface to browse the JMS queue messages like for example ActiveMQ does. So I started to code by myself a simple application which does it. The application is available on github at  https://github.com/fmarchioni/mastertheboss/tree/master/JMSBrowser It is a regular Web application which uses the javax.jms API to browse … 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

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

WildFly – ActiveMQ integration part 1: RAR deployment

This tutorial describes how you can configure the ActiveMQ 5 resource adapter on WildFly with a few simple steps. [Please note, if you want to integrate ActiveMQ Artemis, then check this tutorial: How to connect WildFly to a remote ActiveMQ Artemis server?] A Resource adapter is a Java EE component that implements the Connector architecture (JCA) … Read more