What is the difference between Connection Pool and data source?

Answer Posted / raju

Connection pool is an mechanism of pre-creating group of connections and keeping them in cache memory for use and reuse.
DataSource is an interface in javax.sql ackage.Datasource is nothing but object oriented representation of connection pool or DataSource can be called as connection factory.
Coming to DataSource implementations some third parties have implemented this datasource and also server vendors like Tomcat,Websphere also implemented.

NOTE:mostly we use the server implemented DataSources

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nmenroll in wlst?

583


What are weblogic clusters?

714


What are the toolbar elements.

562


Explain different parts available as part of jvm and describe them in few lines.

528


How can default jvm be changed to others?

549






What are class paths?

522


When deploying a resource adapter (.rar) to weblogic server, are its classes placed in the weblogic classpath? : BEA Weblogic

529


How do I use jta transactions within an mdb? : BEA Weblogic

546


What Is The Purpose Of Clustering ?

603


How can I avoid asynchronous message deadlocks? : BEA Weblogic

517


What is a local transaction?

556


What is the nm?

536


How many types do you configure managed server in weblogic server?

474


Msi replica mode??

568


How do I identify the document type of an xml document? : BEA Weblogic

520