Reputation: 895
I am going to create an application for monitoring tomcat . Is there is any way to get all applications deployed in a tomcat ( any web service provided tomcat for getting that or is there is any other way to find it).
For example: Input is http://ip:port
which points to a tomcat server. i need to get the all applications deployed on corresponding url (tomcat). How its possible? But here my application installed on a different server
Upvotes: 2
Views: 1809
Reputation: 135992
You can read and parse http://hostname:port/manager/html
page. It contains a list of deployed applications
Upvotes: 3
Reputation: 1919
if you are able to use JMX, then that is the way !, JMX is the integrated technology to Java standard edition that allows any application provide management and monitoring to its users , and of course Tomcat includes that.
you would do a query like
JMXQuery=Catalina:j2eeType=WebModule,*
Upvotes: 1