Im looking for ideas on how to best monitor an application running in Tomcat. I am not refering to Tomcat Monitoring but rather checking that the "web application" is active/live.
I know that there are several tools for monitoring Tomcat (lamdbaprobe, Nagios etc) but i want to monitor the actual application that is running within Tomcat. The reason for this is that there are several situations where Tomcat could be running but the application could not be available
One solution that i am thinking about is writing a tool that would try and access the application. For example write a java tool to send and HTTP request and monitor the response.
What is the best approach for this? I have heard of JMX mentioned a lot but i dont know much about it. Can it be used to do the above? Do you know of any other existing tool that would do this or do you know of a better approach ?