What Method and class used for Connection pooling ?
Answer Posted / qim2010
An application simply uses the DataSource.getConnection
method to get the pooled connection and uses it the same way
it uses any Connection object.
The classes and interfaces used for connection pooling are:
ConnectionPoolDataSource
PooledConnection
ConnectionEvent
ConnectionEventListener
The connection pool manager, a facility in the middle tier
of a three-tier architecture, uses these classes and
interfaces behind the scenes. When a
ConnectionPoolDataSource object is called on to create a
PooledConnection object, the connection pool manager will
register as a ConnectionEventListener object with the new
PooledConnection object. When the connection is closed or
there is an error, the connection pool manager (being a
listener) gets a notification that includes a
ConnectionEvent object.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is an iterator interface in java programming?
Explain jdk, jre and jvm?
What is the size of an array?
Can we extend singleton class in java?
What is string manipulation?
What environment variables do I need to set on my machine in order to be able to run java programs?
What is static import?
What is the difference between yielding and sleeping in java programming?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is difference overloading and overriding?
What are the different types of inner classes?
What is the difference between double and float variables in java?
What exactly is java?
Why super is first line in java?
Is null an object java?