[英]How to get all deployed application in tomcat server
I am going to create an application for monitoring tomcat . 我将创建一个用于监视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). 是否有任何方法可以将所有应用程序部署在tomcat中(任何为tomcat提供的web服务都提供了tomcat来获取它,或者有任何其他方法可以找到它)。
For example: Input is http://ip:port
which points to a tomcat server. 例如:输入是http://ip:port
,它指向一个tomcat服务器。 i need to get the all applications deployed on corresponding url (tomcat). 我需要将所有应用程序部署在相应的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. 您可以阅读和解析http://hostname:port/manager/html
页面。 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. 如果您能够使用JMX,那么就是这样! JMX是Java标准版的集成技术,它允许任何应用程序为其用户提供管理和监视,当然Tomcat也包括在内。
you would do a query like 你会做这样的查询
JMXQuery=Catalina:j2eeType=WebModule,*
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.