通过Java Web应用程序查找在WebLogic服务器上运行的所有应用程序的名称 [英] Find name of all application running on a WebLogic server through a java web application

查看:328
本文介绍了通过Java Web应用程序查找在WebLogic服务器上运行的所有应用程序的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在WebLogic Server上运行了4个应用程序(app1,app2,app3,app4)。

Lets say I have 4 applications (app1, app2, app3, app4) running on a WebLogic Server.

我正在用Java编写一个新的Web应用程序,将在SAME服务器上运行
,应用程序的目的基本上是列出在同一服务器上运行的所有Web应用程序。所以,它应该列出(app1,app2,app3,app4)

I am writing a new web application in Java, that will run on the SAME server, and the purpose of the application will basically be to list all the web applications running on the same server. So, it should list (app1, app2, app3, app4)

现在我知道我可以使用WLST脚本来收集服务器上所有应用程序的名称,但我需要在我的java应用程序中访问这些名称。

Now I know that I can use WLST script to gather the names of all the applications on the server, but I need to access these names in my java application.

任何想法?

谢谢

推荐答案

你必须使用 Java Management Extensions (JMX)。

You will have to use Java Management Extensions (JMX).

JMX是一种Java技术,它定义了实施管理和监控的标准应用程序和面向服务的网络。这些资源由名为MBeans(ManagedBeans)的对象表示。

JMX is a Java technology that defines standards for implementing management and monitoring of applications, and service oriented networks. These resources are represented by objects called MBeans (ManagedBeans).

检查此示例

这篇关于通过Java Web应用程序查找在WebLogic服务器上运行的所有应用程序的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆