Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to create a method in java class that determine how many connection are still open and what they are doing? I'm trying to create a class to manage connection pool.

Thank you :)
Posted

1 solution

This is probably not the best approach.
Allow the connection to know if it is still active and then the pool class can check if connections are idle and take them back if needed.

Re-read my earlier response to you here[^].
 
Share this answer
 
Comments
nazila24 18-Oct-11 20:48pm    
could you help me suggest the best approach?actually i'm trying to find the best approach to make connection pool flexible to manage?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900