From: Michael K. <mic...@gm...> - 2005-04-19 13:18:15
|
Wolfgang Meier schrieb: > Michael Kurz wrote: >>I guess the problem is, that tomcat cannot exit until the sync thread of >>eXist terminates. But this thread won't terminate until I call >>DatabaseInstanceManager.shutdown() which I planned to call in >>Servlet.destroy() or the Listener. So I hope this expklains my problem. > > I don't see a good solution other than making sure that the database > is closed before tomcat starts the shutdown process. For example, by > an additional DatabaseShutdownServlet, whose only job is to shut down > the db. For anyone who is interested, I tried what Wolfgang suggested and it works fine for me. I start the embedded instance via a ServletContextListener and shut it down in a separate servlet that has nothing else to do and that has NO instance of eXist. This way tomcat shuts down as expected. Thank you, regards Michael |