Disconnecting the H2 via JDBC should usually handle it internally. Do you have sample working codes, test cases and errors or warnings that can be reproduced ?
On Oct 26, 12:17 pm, Adam McMahon <[email protected]> wrote: > Hi everyone, > > I am using an embedded Database with DB_CLOSE_DELAY=-1. I could not > find a simple way to close this type of database from within Java > code. > > I would like H2 to be able to close a bit more graceful, currently I > am getting the tomcat warning: "appears to have started a thread named > [H2 File Lock Watchdog /home/adam/mydb.lock.db] but has failed to stop > it." > > I do not want to make the Database a resource that is handled by > tomcat, but I would like to open and close it via code. Of course > opening it is easy, but can't figure out how to close it when I want > to. > > Thanks, > > -Adam -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
