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 a flag and how does it work?
Does treeset allow null in java?
What are internal variables?
What are the various access specifiers in java?
Can inner class final?
Can we use string in switch case in java?
What is finally block?
Explain about oops concepts.
What is the use of parseint in java?
What is difference overloading and overriding?
How we can execute any code even before main method?
Differentiate between a class and an object.
Explain super keyword in java.
Is it possible for a yielded thread to get chance for its execution again?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification