commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Verbeeck <dirk.verbe...@pandora.be>
Subject Re: DBCP "Statement already closed .... how?"
Date Tue, 25 Nov 2003 21:15:05 GMT
The problem with the example code you posted is then "conn" variable.
It should be declared inside the method (local variable) and not as a member 
variable.

Your example works if only one request is processed.
A second request overwrites the connection of the first one.
So the first connection is lost and at the end, both requests will try to 
close the same connection two times triggering the exception you see.

-- Dirk




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message