如何确定J2ee应用程序服务器类型和版本? [英] How can I determine the J2ee application server type and version?

查看:193
本文介绍了如何确定J2ee应用程序服务器类型和版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检测有关运行我的EJB的Application Server的信息。
System.properties包含很多关于Java和操作系统的信息,但我需要知道什么类型的应用程序服务器以及是否甚至可能是版本。

I need to detect information about the Application Server my EJBs are running in. The System.properties contain a lot of information about Java and the Operating system, but I need to know what type of application server and if possible even the version.

有没有办法以独立于应用程序的方式获取此信息(可能是JMX)?

或者,有没有获取此信息的WebSphere特定方式?

Is there a way to get this information in an application independent way (JMX maybe) ?
Alternatively, is there a WebSphere specific way of getting this information ?

推荐答案

查看 WAS MBeans 可用。它看起来像 Server MBean 可能包含您正在寻找的一些信息。

Take a look through the WAS MBeans that are available. It looks like the Server MBean may have some of the info you're looking for.

这篇关于如何确定J2ee应用程序服务器类型和版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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