Is there a way to stop tomcat's startup if certain conditions don't occur?
For example, I'd like the contextInitialized method of a servletContextListener to check for various property file attributes as well as verify database connection, etc.
I've seen ways to shutdown tomcat via an MBean event but it requires the host, shutdown port. In my case I am hoping to have a single base class that can be used in multiple tomcats on the same server (each with their own shutdown port).