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
How does arraylist size increase in java?
What are the two categories of data types in the java programming language?
Is java a compiler?
What is array pointers ?
What is private static class in java?
What is communist flag?
What is final keyword in java? Give an example.
What is ordered map in java?
What the difference is between execute, execute Query, execute Update?
Is binary a low level language?
What are the object and class classes used for?
what is the difference between the methods sleep() and wait()? : Java thread
What is listnode in java?
What is linked hashset and its features?
What is the use of singleton class?