Hi, > I want to close my embedded H2 database explicitly from my own shutdown hook > so that I can use the database on shutdown and then close it. I know that I > can prevent H2 from automatically shutting down using DB_CLOSE_ON_EXIT. But > I don't know how to explicitly close the H2 database.
Call Connection.close(), and if you don't have access to all connections execute SHUTDOWN (see there). Regards, Thomas -- 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.
