GeeCON Prague 2014*
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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "connection to DB" Watch "connection to DB" New topic
Author

connection to DB

charishma gottumukkula
Greenhorn

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).

jan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection to DB