Monitoring WildFly’s Infinispan caches

In this tutorial we will learn how to monitor the Embedded Infinispan Caches contained in JBoss EAP / WildFly using Infinispan Listeners. An org.infinispan.notifications.Listener is a key element of Infinispan infrastructure. You can define a new Listener by means of the @org.infinispan.notifications.Listener annotation. Objects annotated with this annotation can be attached to a running Cache … Read more

Using Teiid designer for Data Virtualization

This is the second tutorial about Teiid, the data virtualization platform developed by JBoss team and supported as JBoss Data Virtualization. In this tutorial we will use Teiid designer to model a Relational database just using the wizards of the Designer. Start by downloading the Teeid designer from: http://teiiddesigner.jboss.org/downloads In my case I already got … Read more

JBoss Teiid quickstart tutorial

Teiid is a data virtualization platform, which can be used to integrate data from multiple datasource like RDBMS, Web services, Plain text files, EXCEL, No SQL databases and more, providing a single view of the data. Teiid is typically executed inside JBoss EAP platform, but can also be run in embedded mode. The enterprise version … 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

Accessing ServletContext and ServletRequest in CDI Beans

Today I’ve found one interesting question on StackOverFlow of one user asking to read the web.xml context params from a CDI Bean. Luckily it’s not complicated at all to accomplish this task. In order to be able to read the web.xml context-params from a CDI Bean all you need to do is injecting the ServletContext … Read more

Categories cdi

Spring JDBC application on WildFly

This tutorial demonstrates how to develop a Web application using PrimeFaces for the User Interfaces, Spring JDBC for handling persistence and CDI as glue between these technologies. Although there are many technologies in this tutorial, you will see that mixing them is not complicated at all. You need a basic Web project as startup; for … Read more

WildFly – ActiveMQ integration part 2: module installation

This is the second tutorial about how to integrate Active MQ broker with WildFly. In the first tutorial we have covered how to install Active MQ RAR file on WildFly: This tutorial shows how to deploy a Resource Adapter for ActiveMQ as a module and configure a ConnectionFactory and a Queue towards ActiveMQ. Prerequisite to … Read more

Using Infinispan Query API

Applications using a NoSQL storage often need to query data using a full-text search that can be hardly accomplished using traditional RDBMS. This tutorial shows how to use Infinispan Query module in order to search through data added to the cache using an Object oriented fluent API. In order to do its job, Infinispan uses behind … Read more

Debugging Arquillian Tests

This short tutorial describes how to debug Arquillian Test Cases using a development environment like Eclipse IDE. The prerequisite is that you have gone through the basics of Arquillian– you can start from here: Arquillian tutorial As you already know, Arquillian tests are launched as JUnit test but are executed on the application server environment. Therefore, … Read more

Using Infinispan with WildFly

The Infinispan subsystem provides caching support for HA services in the form of Infinispan caches such as high-performance, transactional caches which can operate in both non-distributed and distributed scenarios. WildFly application server ships with the Infinispan subsystem, however, it is recommended not to use the application server cache definition as repository for your Cache. This … Read more