commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Verbeeck <>
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 

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:
For additional commands, e-mail:

View raw message