title: How to restart Tomcat on a remote server if the application crashes?
body: <p>Suppose I put a java app on Tomcat on a remote server, say Amazon AWS. What's do you recommend to restart tomcat AUTOMATICALLY if the application fails in a unrecoverable manner?
  Maybe is there a way to do this from the app itself, so that if I see that the exception is very nasty I can restart it all?</p>