File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes connection pooling clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "connection pooling clarification" Watch "connection pooling clarification" New topic
Author

connection pooling clarification

The Wall
Greenhorn

Joined: Mar 08, 2012
Posts: 3
I am using connection pooling with the following values:

Minimum connections=1, purge policy=entire pool, age timeout= 0.

I have the following queries:

If I have 5 connections and the connections are to be purged then all 5 of them will be purged or 1 connection will still be maintained (since minimum connection is set to 1)?
If minimum connection is to be maintained then which connection will be selected i.e newest,oldest or any other connewction will be used?
Is there any way in which I can explicitly return a connection logically back to the pool (say using statements like connection.close() or using similar statements)?
Is there a way to find out the type of connection pooling I am using?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection pooling clarification
 
Similar Threads
Connection Pooling
Connection Pooling Doubt
Problem Pooling prepared statements
WebSphere 4 connection pooling.
Configuring org.apache.commons.pool.impl.GenericObjectPool