i've create batch file which run on windows and sh file which run on linux. i did not ask you to provide the full coding. but, ask you to show me the way on how to do it.
Joined: Sep 21, 2011
This could involve a cron job that runs every 5 minutes and checks whether the Tomcat process is still alive, and restarts it if it isn't.
Edit: just saw that the title is actually somewhat different than the question behind it. My answer would thus be simplified to: This could involve a cron job (or a Windows Scheduler task if running on Windows).