top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

What is JDBC DataSource and what are it’s benefits?

0 votes
16 views
posted Sep 19 by Pankaj Singh

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

JDBC DataSource is the interface defined in javax.sql package and it is more powerful that DriverManager for database connections. We can use DataSource to create the database connection and Driver implementation classes does the actual work for getting connection. Apart from getting Database connection.

DataSource provides some additional features such as:

Caching of PreparedStatement for faster processing
Connection timeout settings
Logging features
ResultSet maximum size threshold
Connection Pooling in servlet container using JNDI support

answer Sep 20 by Sourav Kumar

Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...