File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "connection pooling clarification" Watch "connection pooling clarification" New topic

connection pooling clarification

The Wall

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:
subject: connection pooling clarification
It's not a secret anymore!