The JMX API is exposed through RMI and for that it uses the RMI Registry to register a stub to be found by clients i.e., petals-ant and petals-cli).
This means there is a shared knowledge between the container and the clients which is:
- the ip/port of the RMI Registry
- the name of the RMI Registry entry for the stub.
The first point is knowledge used by admins, but the second one is hardcoded in the java code.
It would be better to make that runtime dependency explicit in the code.
Fixed in r38782