Enterprise Java
-
Play 2.0 framework and XA transactions
XA transactions are useful and out of the box, Play 2.0 today does not have support for them. Here I…
Read More » -
Hunting a Random Bug – A True Story
A few weeks ago, I finished a bug hunt for the RapidFTR open source project, which took me three evenings.…
Read More » -
Maven Build Number Plugin – Sample Usage
Suppose we need to add a build number to some artifact (jar, war, etc.). Here I’d like to demonstrate the…
Read More » -
Redis pub/sub using Spring
Continuing to discover the powerful set of Redis features, the one worth mentioning about is out of the box support…
Read More » -
Enhancing Spring Test Framework with beforeClass and afterClass setup
How to allow instance methods to run as JUnit BeforeClass behavior JUnit allows you to setup methods on the class…
Read More » -
Spring 3.1: Caching and EhCache
If you look around the web for examples of using Spring 3.1’s built in caching then you’ll usually bump into…
Read More » -
Spring Security using API Authentication
Background While there are many blog posts that detail how to use Spring Security, I often still find it challenging…
Read More » -
Testing Custom Exceptions with JUnit’s ExpectedException and @Rule
Exception Testing Why test exception flows? Just like with all of your code, test coverage writes a contract between your…
Read More » -
Log4j Thread Deadlock – A Case Study
This case study describes the complete root cause analysis and resolution of an Apache Log4j thread race problem affecting a…
Read More »