Java
-
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 » -
ETags for REST with Spring
1. Overview This article will focus on ETags – the Spring support, integration testing of the RESTful API, and consumption…
Read More » -
IntelliJ IDEA: Generate equals, hashCode and toString with Google Guava
THE PROBLEM In the world of Java, we’re quite often in the need of writing equals, hashCode and toString methods.…
Read More » -
Processing huge files with Java
I recently had to process a set of files containg historical tick-by-tick fx market data and quickly realized that none…
Read More »