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
Break statement can be used as labels in java?
How do you sing an Applet ?
what is the final keyword denotes in java?
Explain the advantages of packages in java?
What is a loop java?
What is the destroy method?
Why can't we make a class private in java?
How to create an immutable class?
Can we have return statement in finally clause? What will happen?
What is meant by collection in java?
What is the use of StringTokenizer class?
What is heterogeneous in java?
How do you declare an array that will hold more than 64KB of data?
Can we write any code after throw statement?
What are java threads?