Posts

Showing posts from September, 2015

Get application status from Tomcat

The project in which I'm working on right now has a feature named "Check Component Status". In our case, we've a large project that consists many microservices. We've deployed these microservices in different servers. Now, we are interested to check which microservice is up and which is down. Also we're interested to know which service has not been deployed yet. So, we created a tiny application that would check the status of the microservices. Some of our microservices were deployed in tomcat and some were in Wildfly. In this post I'm going to explain how we checked the component/microservice status from tomcat. Tomcat already has a management application which is installed by default in the 'management' context path. If we're running tomcat locally on port 8080, we can access the default tomcat application page here: http://localhost:8080/ . Clicking on the "Manager App" link or going to the http://localhost:8080/manager/html wil