Thomas Sundberg

October 11, 2012

JBoss Drools – a hello world example

Filed under: J2EE, Java, Maven — Tags: , , — Thomas Sundberg @ 11:58

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.

(more…)

May 10, 2012

Using Hibernate Second level cache in JBoss 5.1

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.

(more…)

August 7, 2011

Test drive the implementation of a database layer

Development guided by test is perhaps the best way to make sure that your solution works and is possible to verify. I will show how you can develop a database layer guided by tests. It will be divided into two parts. The first part will be an in memory solution and the second part will be implemented using Java Persistence API, JPA, and Hypersonic. The second implementation is supposed to replace the first one guided by the tests developed for the in memory solution.

(more…)

December 21, 2010

Automatically integration test an ejb with Maven

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?

(more…)

July 9, 2010

Maven and JBoss ESB – Hello World

Filed under: J2EE, Java, Maven — Tags: , , , , — Thomas Sundberg @ 11:42

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.

(more…)

April 17, 2009

Integration test a web application with Selenium

Filed under: J2EE, Java, Selenium — Tags: , , , , , , , , , , , — Thomas Sundberg @ 11:59

We want to build a web application and we want to test it automatically.

(more…)

April 9, 2009

Hibernate, Spring and Maven

Filed under: J2EE, Java — Tags: , , , , , , — Thomas Sundberg @ 13:18

(more…)

April 6, 2009

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

Filed under: J2EE, Java, Maven — Tags: , , , , , , , — Thomas Sundberg @ 17:02

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

(more…)

Theme: Customized Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 39 other followers