• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection to DB

 
charishma gottumukkula
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
of course not. your database connections should be provided by some sort of connection pool, which usually is a singleton (or singleton like).

jan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic