R
rkm
When I'm done using my connection to a Sybase database, I
call the conn.close() method, but it doesn't seem to clean
up the underlying physical connection. Eventually I use up
all the available connections and (assuming I don't kill my
program) the Sybase admin ends up having to close the db on
his side and reopening it.
Aside from keeping one connection open and using it forever
(my current solution which I don't like), what's the
solution to the problem of the resources not being cleaned
up? Do I need to call a finalizer method (I'm led to
believe that's a general no-no), or maybe invoke the garbage
collector? Is this a known bug in the jconn2 driver?
Rick
call the conn.close() method, but it doesn't seem to clean
up the underlying physical connection. Eventually I use up
all the available connections and (assuming I don't kill my
program) the Sybase admin ends up having to close the db on
his side and reopening it.
Aside from keeping one connection open and using it forever
(my current solution which I don't like), what's the
solution to the problem of the resources not being cleaned
up? Do I need to call a finalizer method (I'm led to
believe that's a general no-no), or maybe invoke the garbage
collector? Is this a known bug in the jconn2 driver?
Rick