简体   繁体   中英

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM