Maven dependency tree
2008-05-15 07:49:37
I always thought I had to generate the Maven site in order to elicit the dependency tree of my project(s). Today I read in Maven: The Definitive Guide that a much simpler/faster "mvn dependency:tree" does the trick as well. The result is both as simple and effective as it should be!

Transactions and Hibernate sessions in batch jobs
2008-05-05 12:18:58
Hibernate session management in batch jobs differs from session management in web applications. Whereas in the latter case the OSiV (Open Session in View) pattern is most prevalent nowadays, in the former case it is best practice to attach/sync your Hibernate session to the transaction of the batch job using Spring's AOP (Aspect Oriented Programming) facilities. Since this is much less commonly known, this post details and discusses such a sample Spring context file.

WebSphere test environment and Maven
2008-04-06 12:50:54

When implementing a web project using RAD (Rational Application Developer) and Maven, there is a difficulty using the WebSphere test environment in RAD for a project that is built with Maven, since the RAD test environment is only looking at the dependencies (JARs) that can be found in the WebContent/WEB-INF/lib directory of the web project, whereas the (Maven generated) classpath for RAD should be used instead.

Sample Scripts for WebSphere Application Server
2008-03-19 14:20:28
Today a colleague tipped me on this page containing sample installation scripts for WebSphere application server version 5 and 6. Such a relief that we don't have to set up these (Jacl) scripts from scratch anymore!

Preparing your workspace with Maven Eclipse plug-in
2008-03-03 12:49:28

The Eclipse plug-in of Maven can assist setting up your workspace by making the Maven repository available to Eclipse via the classpath variable M2_REPO. This comes in handy when one starts using Maven in Eclipse for the first time or whenever a new workspace is created. All that is needed is an invocation of Maven's Eclipse plug-in like so:

$ mvn eclipse:add-maven-repo -Declipse.workspace=/path/to/my/workspace/

All artifacts in the (generated) .classpath files in Eclipse are dereferenced from this M2_REPO variable, so you better have it defined right away!

Of course, equivalently, this variable may be manually added to Eclipse's build path by opening the Eclipse preferences window, and adding the M2_REPO variable by navigating to the Java => Build Path => Classpath Variables pane.

Review of Maven 2 dashboard plugins
2008-02-18 06:49:12

This post contains the results of a concise research on Maven 2 plug-ins that aggregate results of other report plug-ins such as Checkstyle, PMD and Cobertura. Such a plug-in is especially useful for multi-module projects. For Maven 1 this plug-in was known as Dashboard. For a long time, a Maven 2 version this plug-in seemed to be discontinued, but recently I stumbled upon a new version for Maven 2. Moreover, in the meantime other alternatives have emerged as well.

In this post four alternatives are considered and discussed:

Base test class for testing DAOs with DbUnit
2008-02-18 06:49:12
If you want to test DAOs with DbUnit, it is likely that you may want the same functionality to be available to all your DAO test cases. To this extent, I implemented a BaseDaoTestCase class, that provides this functionality by inheriting from it.

Including WebSphere 5/6 EJBs in maven2 build
2008-02-18 06:49:12
When you want to build your projects using maven2, a challenge arises when trying to build an EJB and EJB client which must run on WebSphere 5 or 6. This post thouroughly explains, with samples, how to configure maven2 and what plugins to use to be able to generate the stubs and skeletons required by WebSphere.

USB Uno MIDI interface
2008-02-18 06:49:12

A couple of weeks ago I bought a USB MIDI interface, one that is supported under Linux, of course.

 

Midisport Uno USB MIDI interface

 

It is the Midisport Uno by M-Audio. Finally I can play my favourite MIDI files on my digital piano (again) as well as record my playing with a sequencer using my laptop. Although it took me some time to get the Uno working under Linux, I am now immensely happy with it, since I normally never use Windows and I have Rosegarden to my avail. What an incredibly nice and feature rich open source MIDI program. The only scarce resource left now is my time!

Unit testing servlet with Spring application context
2008-02-16 12:49:00
In this post it was outlined how to make the beans defined in the Spring application context XML file available in servlets. This blog entry describes the way in which such a servlet may be tested with JUnit tests.