Archive for February, 2009

A question commonly asked on the spring forums is that a service makes calls to multiple DAOs, how can ALL the calls be rolledback if any of the calls throws an exception. The simplest way to do this is to make your service transactional while keeping your DAOs non-transactional. Example Service : //imports & package [...]

Friday, February 6th, 2009 at 17:07 | 4 comments
Categories: Spring, Tips & Tricks

ConcurrentHashMap is a pretty ignored class. Not many people know about it and not many people care to use it. The class offers a very robust and fast (comparatively, we all know java concurrency isn’t the fastest) method of synchronizing a Map collection. I have read a few comparisons of HashMap and ConcurrentHashMap on the [...]

Thursday, February 5th, 2009 at 13:16 | 3 comments
Categories: Java, Tips & Tricks
Tags: