Project: springxd
Issue XD-834: Handle XD admin server shutdown cleanly
There are couple of issues here: 1) The admin server destroy() - close event's onApplicationEvent(ContextClosedEvent) listener has stop() to stop the admin server's tomcat instance. The stop() also calls the applicationContext's destroy() which loops again to stop. 2) With HSQLServer or any batch db server(in future), the admin server stop() also needs to handle the batch db server shutdown.
Story points: 2