Shutdown hook for Tomcat

2016-02-25 Thread Eranga Samararathna
Tomcat Version : 7.0.47 How can I override shutdown hook in Tomcat? Currently one of my web application invoke a remote process and due to unavailability of remote process my web application code invoke a shut down hook and it cause Tomcat to invoke it's shutdown hook. Finally Tomcat get shutdown

Tomcat gracefully shutdown when run with Apache Spark

2016-02-21 Thread Eranga Samararathna
Tomcat version: 7.0.47 I have a web application which uses Apache Spark. My web application act as a Apache spark driver program. When remote standalone spark cluster is not available then Spark context is shutting down with log org.apache.spark.util.Utils - Shutdown hook called Sooner this happ