Hi Dhanji,
Nice to have you here. I've recently gotten in the habit of using Spring to manage my singletons because it's easier to
test. It can be difficult to test class that uses a singleton with MySingleton.getInstance() since you end up with this global state that can persist throughout tests. I recently wrote a blog entry about it
http://jeffastorey.blogspot.com/2009/08/spring-managed-singletons-for.html (though what I'm saying now is the gist of it).
What are your thoughts on using spring to inject singletons vs traditional getInstance() (other than that a spring managed singleton is only a singleton within a particular context).
thanks,
Jeff