IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes Should DAOs be singleton??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Should DAOs be singleton???" Watch "Should DAOs be singleton???" New topic
Author

Should DAOs be singleton???

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi All,

I have a doubt about a design issue....My friend has to code DAO that make use of hibernate in the code..

But he is not sure about whether to make them as singleton classes...


Any suggestions would be helpful???


Regard
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

No need to create them as Singletons, probably more so if you have multiple users that need their own transactions, and pass the ACID tests.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
IntelliJ Java IDE
 
subject: Should DAOs be singleton???
 
Threads others viewed
Implementing Lock/Unlock
Synchronization
customized constructors
problem in clone() while making singleton
Singleton Factory Object
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture