Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why we need datasource

 
firoz silar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why we need datasource, why can't we directly use the connection pool instead of datasource
 
mnadeem chishti
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
application don't need to get brand new connection from database. It gets connection from datasource pool and returns to pool. Moreover you can specify maximum and minimum number of conneections which an application may open with database.
 
Scott Selikoff
author
Saloon Keeper
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a homework question? Sounds like a copy and paste to me...
 
firoz silar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we are not directly getting connection from database, connection pool is creating connection, why can't we directly use connection from connection pool............why we need data source in between.
 
abhishek gowlikar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
datasource is the config file for server how your server recognizes what is the database name and provider.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic