aspose file tools*
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 8 in Action this week in the Java 8 forum!
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
 
Similar Threads
H2 database consule lockings
Is HTTP connectionless or connection oriented
HTTP Connection less or Connection based?
Head First OOAD
Jboss connection pool not releasing the connection from pool