aspose file tools*
The moose likes JDBC and the fly likes Difference between DataSource & DriverManager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Difference between DataSource & DriverManager" Watch "Difference between DataSource & DriverManager" New topic
Author

Difference between DataSource & DriverManager

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between DataSource & DriverManager