I was
testing my code today with 2 users and got the following error when we both clicked the same link.
java.sql.SQLException: Connection has already been closed.
the method that is run when that link is clicked goes like this.
opens a connection (using connection pools)
runs sql
puts data into
java object
closes connection.
when using connection pools, am I not supposed to close my connections? Is that all handled by the webserver? Here is an example method.
Maybe I'm not using the pool correctly in my code when opening it?
I open my connection by:
And I close it by:
Any help would be greatly appreciated.
-Nate