-
Enterprise Java
Testing Spring components with Mockito
Be able to unit test your spring components without the need of loading the full spring-context with its ad-hoc test…
Read More » -
Core Java
Garbage Collector guidelines and tips
These are some of the guidelines and tips I usually look at when I need to tune the GC. Are…
Read More » -
Core Java
Building smart Builders
When building an API, you should always think about who is going to use it. When the API is simply…
Read More » -
Core Java
Even in the jdk there is bad code
Java 7, TreeSet and NullPointerException. Recently I tried to compile with java 7 a project developed with java 6. Lot…
Read More » -
Enterprise Java
Easy testing SLAs on distributed components with grep4j
So your distributed architecture looks something like the picture below and you just have received a requirement from the business…
Read More » -
Enterprise Java
Pool of ssh connections using Apache KeyedObjectPool
I found the org.apache.commons.pool extremely useful and robust, but not well documented. So, I’ll try to help a bit here…
Read More » -
Enterprise Java
Chain of responsibility using Spring @Autowired List
There is a way in Spring 3.1 to auto populate a typed List which is very handy when you want…
Read More » -
Core Java
JUnit4 Parameterized and Theories Examples
I always relied on TestNG to pass parameters to test methods in order to give a bit of flexibility to…
Read More » -
Enterprise Java
JBoss HornetQ for Kids, Parents and Grandparents – Chapter 1
It’s now almost 4 years that I’m working with HornetQ and I think it’s time to share part of what…
Read More »