Arquillian Faqs

In this article I’m including a list of common questions related to Arquillian integration testing framework How to create a WAR deployment with Arquillian In the following example you can see how to create a War deployment which includes a custom Manifest file (with Dependencies), plus a file into the WEB-INF folder and the Web … Read more

Creating SOAP Messages Programmatically

In this tutorial we will learn how to create a javax.xml.soap.SOAPMessage programmatically using SOAPBody and SOAPElement objects and how to create one from a String. First of all the javax.xml.soap.SOAPMessage is the root class for all SOAP messages. As transmitted on the “wire”, a SOAP message is an XML document or a MIME message whose … Read more

Generate Sequences with Infinispan Clustered Counters

In this tutorial we will learn how to use Clustered Counters with Infinispan 9.1.0. Cluster Counters are an useful feature of Infinispan which lets you generate unique identifiers in a cluster. Typically reliable counters are generated through a Database’s Sequence schema but this requires a connection to a Database limiting how the application scales for … Read more

How to configure MDB properties dynamically

A simple and effective way to configure the MDB properties dynamically with JBoss EAP and WildFly is via System Properties. All you have to do is coding your MDB Properties and then enable Property replacement: import java.util.logging.Logger; import javax.ejb.ActivationConfigProperty; import javax.ejb.MessageDriven; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.MessageListener; import javax.jms.TextMessage; @MessageDriven(name = “HelloWorldQueueMDB”, activationConfig = { … Read more

Configuring Undertow Filters on WildFly

Undertow filters can be used to modify some aspects of an HTTP request. They are commonly used to add or remove some settings from HTTP Headers or to compress the request. In this tutorial we will learn how to create a custom Undertow Filter. As said, out of the box Undertow provides some built-in filters … Read more

How to autoscale your applications with Openshift

This tutorial will demonstrate how to use the Autoscaling feature to let Openshift automatically scale the number of Pods based on the amount of resources required by the Pod, up to a certain limit. Out of the box when you create a new application with Openshift, a Pod will be automatically deployed with that application … Read more

Configuring metrics on Openshift

Openshift metrics is an essential component to gather information about the health of your Paas. In this tutorial we will learn how to start Openshift Origin with metrics enabled and how you can check them. Openshift Metrics is a component designed to gather container, pod and node metrics from across an entire OpenShift cluster. These … Read more

EJB Annotations cheatsheet for JBoss AS or WildFly

There is a vast number of annotations you can use when running EJB applications, spanning from Cache configuration to Clustering and Security. Let’s see them more in detail in this tutorial. Dependency required to build projects using jboss.ejb3 annotations First of all, in order to be able to compile projects using @org.jboss.ejb3 annotations you need … Read more