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

Securing JBoss applications using the ApplicationRealm

JBoss AS 7 and the EAP 6 provide out of the box a Security Domain which can be used for securing your applications. Let’s see how to use it in a few simple steps. What is JBoss Application Realm? When applications are deployed to the application server they are associated with a security domain within … Read more

Configuring Single Signon on JBoss AS 7

This tutorial describes how to configure Single Signon for a JBoss AS 7 Web application (standalone and clustered).  The Single Signon configuration allows a centralized login configuration for corporate sites that use different Web context. In order to cofigure single signon on JBoss AS 7 we need to operate on two configuration points: The web subsystem … Read more