• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between DataSource & DriverManager

 
manish ahuja
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

Can someone ellaborate on the differences between the 2 data resource approaches (DataSource & Drivermanager). What are the advantages Of DataSource over DriverManager.

Bye
Manish
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34669
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manish,
A DataSource is managed by the application server. It handles connection pooling and the like. A DriverManager lets you get a connection in a standalone application. You are responsible for handling everything in the code yourself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic