This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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?
It is sorta covered in the JavaRanch Style Guide.
subject: connection pooling clarification
It's not a secret anymore!