Hi Friend,
In both ways we can get the connection, DriverManager and DataSource.
One difference between both is that Datasource has properties with it, which represents the Source of data it represents.
Other is, DataSource supports the JNDI Service, so we can give any logical name to that datasource eg. MSSQLDataSource to MS SQL server,
MySQLDataSource to MySQL.
One more is, DataSource can be separately created...
Leave a comment: