in the situation where u supply a jdbc connection to hibernate, u can always
guarentee that the connection will be closed in a timely manner by calling
the close method on the connection inside a finally block. however if u let
hibernate open a connection for u, there is no way u can do this. i c that
RelationalDatabaseSession.java has a finalize method that cleans up the
connection (which is good), but there is no guarentee as to when the gc will
run, and therefore when the finalize method will be called. perhaps a
session.close method is in order?
brad
_______________________________
brad clow
chief technical officer
workingmouse
email: bra...@wo...
web: http://www.workingmouse.com
|