Bug 58351 - Provide JMX access to server.built and server.number
Summary: Provide JMX access to server.built and server.number
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Catalina (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-10 04:58 UTC by Huxing Zhang
Modified: 2016-02-24 09:38 UTC (History)
0 users



Attachments
patch to provide JMX access to server built and server number (1.78 KB, patch)
2015-09-10 04:58 UTC, Huxing Zhang
Details | Diff
patch to provide JMX access to server built and server number(against tomcat9 trunk) (1.66 KB, patch)
2016-01-27 02:14 UTC, Huxing Zhang
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Huxing Zhang 2015-09-10 04:58:56 UTC
Created attachment 33087 [details]
patch to provide JMX access to server built and server number

We are able to obtain Server Info, Server Built, and Server Number by running "catalina.sh version",  those information are also logged to catalina.out by VersionLoggerListener. 
However, we cannot get Server Built and Server Number via JMX, which I think is inconsistent.
We should also provide JMX access to Server Built and Server Number.
Comment 1 Huxing Zhang 2016-01-27 02:14:31 UTC
Created attachment 33494 [details]
patch to provide JMX access to server built and server number(against tomcat9 trunk)

This enhancement should also be applicable to tomcat9 trunk.
Comment 2 Honza Hejzl 2016-02-10 20:39:22 UTC
markt testing a reported issue using Bugzilla's sudo feature. Please ignore.
Comment 3 Mark Thomas 2016-02-23 21:15:45 UTC
Thanks for the patch. I have applied it to 9.0.x for 9.0.0.M4 onwards and yo 8.0.x for 8.0.33 onwards.
Comment 4 Huxing Zhang 2016-02-24 02:40:50 UTC
Thanks for applying the patch!

Actually, the obsolete patch:

https://bz.apache.org/bugzilla/attachment.cgi?id=33087

is still applicable to tomcat7 trunk.

Would it be possible to back port this feature to tomcat 7?
Comment 5 Mark Thomas 2016-02-24 09:38:21 UTC
Done. Will be in 7.0.69 onwards.