Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between Connection Pool and data source?

Answers were Sorted based on User's Feedback



What is the difference between Connection Pool and data source?..

Answer / jaydeb chakraborty

Applications access a data source using a connection and
access Databases via DataSource objects.

A DataSource has a set of properties that identify and
describe the real world data source that it represents.
These properties include information such as the location
of the database server, the name of the database, the
network protocol to use to communicate with the server, and
so on.
DataSource object can be thought of as a factory for
connections to the particular data source that the
DataSource instance represents. In a basic DataSource
implementation, a call to the getConnection method returns
a connection object that is a physical connection to the
data source.

DataSource objects that implement connection pooling also
produce a connection to the particular data source that the
DataSource class represents. The connection object that the
getConnection method returns is a handle to a
PooledConnection object rather than being a physical
connection. An application uses the connection object in
the same way that it uses a connection. Connection pooling
has no effect on application code except that a pooled
connection, like all connections, should always be
explicitly closed. When an application closes a connection
that is pooled, the connection is returned to a pool of
reusable connections. The next time getConnection is
called, a handle to one of these pooled connections will be
returned if one is available. Because connection pooling
avoids creating a new physical connection every time one is
requested, it can help applications run significantly
faster.

Is This Answer Correct ?    14 Yes 2 No

What is the difference between Connection Pool and data source?..

Answer / hitler

The Connection pool means equals instance of connections and
it refereed Data Source object.

Is This Answer Correct ?    10 Yes 2 No

What is the difference between Connection Pool and data source?..

Answer / vijaya kumar

DataSource is an object reference which provides jdbc client to obtain a connection from connection pool.

Connection Pool is collection of ready to use database connections to connect the database.

Is This Answer Correct ?    4 Yes 1 No

What is the difference between Connection Pool and data source?..

Answer / 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

More Weblogic Interview Questions

What is t3??

0 Answers  


How do stubs work in a weblogic server cluster? : BEA Weblogic

0 Answers  


dIFFERNCE BETWEEN VERSIONS 8.X,9.X,10.X

3 Answers  


Difference between production and development mode?

0 Answers  


how to create a sub domain in domain ?

1 Answers   TCS, Wipro,


How to troubleshoot it?

0 Answers  


How to access the admin console?

0 Answers  


What are stubs and how do they function in a web logic cluster?

0 Answers  


Can two jms servers share the same persistent store? : BEA Weblogic

0 Answers  


How does a server find out server unavailability?

0 Answers  


What is t3 protocol?

0 Answers  


Tell me what are the causes of having ociw32.dll error in the database of web logic server?

0 Answers  


Categories