Java
-
How to shoot yourself in foot with ThreadLocals
It will start nicely. Like most of the stories. You discover a new concept and are amazed by it’s powers.…
Read More » -
Going REST: embedding Jetty with Spring and JAX-RS (Apache CXF)
For hardcore server-side Java developer the only way to ‘speak’ out to the world is by using APIs. Today’s post…
Read More » -
Mixin in Java with Aspects – for a Scala traits sample
Scala traits allow new behaviors to be mixed into a class. Consider two traits to add auditing and version related…
Read More » -
MySql connections autodrop after a certain hours
MySql is configured to drop any connection which has been Idle for more than 8 hours. What is the implication…
Read More » -
Brace yourselves – Spring Framework 4.0 is coming!
A few days ago SpringSource announced that the 4.0 version of the popular Spring framework is on the road. The…
Read More » -
Testing REST with multiple MIME types
1. Overview This article will focus on testing a RESTful Service with multiple Media Types/representations. This is the tenth of…
Read More » -
Spring Property Placeholder Configurer – A few not so obvious options
Spring’s PropertySourcesPlaceholderConfigurer is used for externalizing properties from the Spring bean definitions defined in XML or using Java Config. There…
Read More » -
Hamcrest Containing Matchers
The Hamcrest 1.3 Javadoc documentation for the Matchers class adds more documentation for several of that class’s methods than were…
Read More » -
Java Thread Pool Example using Executors and ThreadPoolExecutor
A thread pool manages the pool of worker threads, it contains a queue that keeps tasks waiting to get executed.…
Read More »