Beginner |
 |
Joined: Sun Nov 19, 2006 6:18 am Posts: 28
|
I am using C3p0 connection pool in my code.
I have a question. I went through the C3P0ConnectionProvider class in the hibernate source code.
The function closeconnection in this class closes the connection with the underlying database.Is this True? I want to confirm it.
if i do session.close(),then hibernate calls the close function of the ConnectionProvider class which in this case is
C3P0ConnectionProvider and its close methond would close the underlying connection.
Is my understanding rite? Please correct me if i am wrong.
According to me session.close() should return the conn object back to the pool..
Kindly help
|
|