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