| erik |
Thu Nov 01 18:57:09 GMT 2007 |
| |
Hi again,
Is there any way to test if the connection has been properly closed (returned to the pool)?
I tried the Connection.isClosed() method, but that always returns false even though the log-file says the connection has been returned to the pool.
Thanks in advance! |
| |
| sedj |
Thu Nov 01 19:06:58 GMT 2007 |
| |
Connection.isClosed() tests if the physical underlying connection to the DB is closed.
There is no method to tell if the connection has been returned to the pool, because primrose (lie all good pools) tries not to introduce any non-JDBC-spec method calls into it.
You should not really need to check if a connection is back in a pool though ... that is for the pool to take care of.
Basically, all you should do is :
Get Connection
Use Connection
Close Connection
and move on. |