Get Java application server name and version

前端 未结 3 1895
生来不讨喜
生来不讨喜 2020-12-14 16:43

I am writing a Web application with Java, and this WAR application may be deployed to different application servers, such as Tomcat/JBoss/Jetty/Weblogic.

For diagnos

3条回答
  •  独厮守ぢ
    2020-12-14 17:15

    These type of information are always put in some MBean. Please check out the respect ive App Server's documentation about the MBeans the provide. You can programmatically access the MBean using JMX APIs.

提交回复
热议问题