General J2EE: singletons and threadsafety
I am thinking about making my DAOFactory a singleton and reading following article about singletons:
which led to another article:
Honestly, it got me more confused that informed about how to implement my singleton DAOFactory.
Honestly, it got me more confused that informed about how to implement my singleton DAOFactory.Any thoughs?PI
Well, what is it exactly that you're confused about?
I think both articles are pretty clear?
A third one you might want to have a look at is
Look for the section 'Initialize-On-Demand Holder Class idiom'.