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

Dynamic Servlet Registration

One of the cool features introduces by Java EE 6 is Dynamic Registration of Servlets and Filters at application startup. This can be really useful if you are building your own framework but I guess for developers too can benefit from it. In order to do that, you can use some new methods introduced in … Read more

Cloud Computing and Mobile Devices

Cloud computing is a recent technology that seeks to provide users with access to their personal data and applications whenever they need it. Simplification of the access would mean a shorter time for the users to make full used on it; hence, leading to greater marketability of the product. Smartphones and tablets make up to … Read more

Websockets: using Encoders and Decoders

This second tutorial about Websocket will illustrate how you can use Encoders/Decoders in order to transmit complex structures between your peers. A Websocket can use a Decoder to transform a text message into a Java object and then handle it in the @OnMessage method; whenever an object is written to the Session, a Websocket will … Read more

WebSockets tutorial on Wildfly 8

WebSockets are a new way for Web clients to communicate with servers and vice versa, without the overhead of an HTTP protocol. Using a WebSocket connection, Web applications can perform real-time communication instead of having to poll for changes back and forth. WebSockets feature a full duplex bi-directional communication between the server and the client … Read more

Rewrite: a Java EE URL rewriting solution

This tutorial will discuss about a cool open-source project named Rewrite which is an URL-rewriting solution for Servlet, JSF, and Java EE. Rewrite offers powerful configuration, flexible extensions, and framework integration.  In order to experience a basic usage of Rewrite you need to add the rewrite-servlet dependency to your Maven projects. Since we will test … Read more

Using Netbeans and JBoss AS 7

Info: There is a more recent article about NetBeans and WildFly Integration: Configuring NetBeans with WildFly NetBeans IDE is an open-source integrated development environment. NetBeans IDE supports development of all Java application types (Java SE (including JavaFX), Java ME, web, EJB and mobile applications) out of the box. In the last couple of months I’ve … Read more

A Thread pattern for JBoss Enterprise applications

Using Threads in your Enterprise applications has been traditionally discouraged as it might conflict with the Application Server’s own threads. Nevertheless with the introduction of the Asynchronous EJBs it is possible to explore new design patterns which allow managing your thread pool from within the EJB container.    Important notice: this tutorial requires JBoss AS … Read more

Using the Drools Guvnor Repository to store your Rules

Guvnor is the business rules manager included with Drools to manage knowledge and to be a centralized repository for Drools knowledge bases. In this tutorial we will show how to upload and use some rules in its repository. In order to get started you need at first to install the Guvnor repository into JBoss AS … Read more