|
| Re: 'Connection has already been closed'. Random error connecting with |
 |
Wed, 30 Apr 2008 04:05:52 -070 |
Seems a good code, many thanks.
Now, the fact is that I'm using the DBDAO class as an abstract class in the new
architecture, and every table in the db has the corrisponding DAO that extends
it with many methods for the CRUD. The methods get the conn calling
getConnection(). They don't close the connection as they may need to continue
the transaction.
So, in the new DAO classes the conn is treated like this.
But the problem happens in the old code, that doesn't make use of these methods,
it only retrieves the conn from the Connessione class. It's used in a method for
the items in a combo box, and that method finds it closed. I do |
| Post Reply
|
|
|
|
|
|
|
|
|
|