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 diagnostic purpose, I'd like to implement a dynamic web page to collect various environment/system information so that customer can provide these information to support engineers for diagnostics.
One piece of information that is useful is the application server name and version that this application gets deployed to, such as Tomcat 7.0
, JBoss 5.1.0
, Glassfish 3.0
, etc.
I just wonder if there is any standard way to retrieve application server's name and version from different JEE application servers.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…