Mocking framework comparison: Mockito

Unit testing is essential to produce good software. In consequence, I would claim that any Java developer knows (and uses) JUnit. As a unit test is intended to cover only...
Andreas Günzel
Andreas Günzel
comment icon 08.10.2016

Fighting the Transaction Reaper

Long running transactions might be killed by the App Server's Transaction Reaper. I have implemented a litte helper to programmatic handle such kinds of exceptions. The problem: Timed out translations...
Andreas Günzel
Andreas Günzel
comment icon 05.31.2016

Intermediate commit within transaction

Imagine following situation: We have a service that polls the database for entities in a certain state, for example new. The found entities are passed to a worker that executes...
Andreas Günzel
Andreas Günzel
comment icon 05.19.2016

Dynamically resolve Hibernate database dialect

When using Hibernate as JPA provider you need to tell the JEE application which database vendor you are using. The classic approach is to set the property hibernate.dialect as shown...
Andreas Günzel
Andreas Günzel
comment icon 03.23.2016