Suppose we have a database H2that runs from a web application in Tomcatusing Hibernate. In other words, it is an embedded database H2in the application .
Question: is it possible to programmatically stop this server H2from this application, and then start it again?
Postscript Server.createTcpServer(args).start();or Server.shutdown(...)not, because it is in embedded mode.
source
share