Anish Antony
Anish Antony

Reputation: 895

How to get all deployed application in tomcat server

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

Answers (2)

Evgeniy Dorofeev
Evgeniy Dorofeev

Reputation: 135992

You can read and parse http://hostname:port/manager/html page. It contains a list of deployed applications

Upvotes: 3

Leo
Leo

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,*

check this site

Upvotes: 1

Related Questions