简体   繁体   English

如何在tomcat服务器中获取所有已部署的应用程序

[英]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,*

check this site 检查这个网站

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Unix中部署在Tomcat上时如何获取应用服务器地址 - How to get app server address when deployed on tomcat in unix 如何从tomcat服务器中已部署的WAR文件中获取完整的URL - How to get the full URL from deployed WAR file in a tomcat server 使用tomcat服务器编辑已部署的应用程序 - Edit a deployed application using tomcat server 如何在Tomcat中部署的Eclipse中调试Java应用程序? - How to debug java application in Eclipse deployed in tomcat? 如何同时启动在Tomcat中部署的所有应用程序 - How to start all applications deployed in tomcat Concurrently 如何以固定的时间间隔调用Java方法,该方法作为Web应用程序部署到Apache Tomcat服务器? - How to call Java method on patricular interval of time which is deployed to Apache Tomcat server as a web application? Tomcat - 如果没有正确部署应用程序,如何获取http 500而不是404? - Tomcat - how to get http 500 instead of 404 when application wasn't deployed correctly? 如何获取部署在Apache Tomcat 7上的Java Web应用程序的正常运行时间报告? - How to get the up time report for a Java Web Application deployed on Apache Tomcat 7? 是否有任何方法可以将文件添加到tomcat服务器上已部署的Web应用程序 - IS there any way to add files to a deployed web application on tomcat server 使用货运插件时无法将应用程序部署在tomcat8上 - Not able to get the application deployed on tomcat8 while using cargo plugin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM