0

I need to know the status of a Tomcat server (http://localhost:8081) - whether or not it is started using Java code. How can I do this if it is possible?

user1796108
  • 11
  • 1
  • 2
  • may be you can refer [this](http://stackoverflow.com/questions/4095840/check-the-tomcat-running-or-not) – Atik Dec 10 '12 at 08:03

1 Answers1

1

Add a Tomcat Manager application and use GET urls, then parse the returned text.

You may read:
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html

Samuel
  • 91
  • 8