Blog

Articles in category J2EE

JBoss Drools - a hello world example

2012-10-11 · J2EE Java Maven · Thomas Sundberg

What is JBoss Drools? It is a framework where you can create rules that defines when a specific action should be done. This could be done in code using conditions. Creating them using a rule engine can make it easier to combine many business rules with many actions.

I tried to get a JBoss Drools example up and running. It turned out that the examples I found on the web were either were very complicated, tried to solve all possible problems or was just incomplete. I ended up writing my own example where I have removed everything that I didn't find necessary.

I divided this example in two parts. First part is the simplest possible solution that could work, a Hello World. In the second part I try to do something that actually could be useful. I trigger a rule and instantiates a class that could perform some action.

Read more →

Using Hibernate Second level cache in JBoss 5.1

2012-05-10 · J2EE Java · Thomas Sundberg

Enabling second level cache in a JBoss when you use JPA 1 is actually relative easy. Understanding how to set its properties is also not to difficult to do. Finding how to specify which configuration file to use when setting the additional configurations is more difficult.

Read more →

Automatically integration test an ejb with Maven

2010-12-21 · J2EE Java · Thomas Sundberg

We want to perform an integration test of a system using Maven. The application must be deployed on an application server and the application server must be started before we can perform the integration tests. The application should be undeployed and the application server should be terminated after the integration test has been performed no matter what the result of the test was.

How can this be achieved with Maven?

Read more →

Maven and JBoss ESB - Hello World

2010-07-09 · J2EE Java Maven · Thomas Sundberg

I want to build a Hello World example for JBoss ESB using Maven instead of Ant. The original example bundled with JBoss ESB is using Ant. I have created a pom.xml that will do all the magic and re-located the example files to fit into a Maven structure.

Read more →

Hibernate, Spring and Maven

2009-04-09 · J2EE Java · Thomas Sundberg

We will create a small Java application that connects to a database using Hibernate. We will use Spring to wire stuff together and Maven to build it.

Read more →

How can I create a simple web application using Spring MVC?

2009-04-06 · J2EE Java Maven · Thomas Sundberg

I want to to create a very simple web application using Spring. I want to create it using Maven as build tool.

Read more →