user1796108
user1796108

Reputation: 11

How to get serever Status of localhost(tomcat)?

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?

Upvotes: 0

Views: 903

Answers (1)

Samuel
Samuel

Reputation: 91

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

Upvotes: 1

Related Questions