• 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
Sheriff
Posts: 36032
432
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!