I've never really understood why we had constants for these values since they would be changing based on the server type.

Wouldn't it be better the server could be asked for what is the default for a certain port ? like server.getDefaultPort("jmx") ? or the subsystem for it would know ?

This would also be usable when looking at eventually enable support for WTP port monitoring which we never got working but IMO should.