jQuery in Action, 3rd edition
The moose likes Struts and the fly likes connection to DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "connection to DB" Watch "connection to DB" New topic

connection to DB

charishma gottumukkula

Joined: Nov 06, 2006
Posts: 20
i am creating a small application which contains few pages and using DAO's to connect to DB.do i need to creat a connection in each and every DAO
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
of course not. your database connections should be provided by some sort of connection pool, which usually is a singleton (or singleton like).

I agree. Here's the link: http://aspose.com/file-tools
subject: connection to DB
jQuery in Action, 3rd edition