JDK-8304127 : Release Note: Deprecate JMX Subject Delegation and the `JMXConnector.getMBeanServerConnection(Subject)` Method for Removal
  • Type: Sub-task
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2023-03-14
  • Updated: 2023-07-28
  • Resolved: 2023-03-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21Resolved
Description
The JMX Subject Delegation feature is deprecated and marked for removal in a future release.  This feature is enabled by the method `javax.management.remote.JMXConnector.getMBeanServerConnection(javax.security.auth.Subject)` which is deprecated for removal.

If a client application needs to perform operations as, or on behalf of, multiple identities, it will need to make multiple calls to `JMXConnectorFactory.connect()` and to the `getMBeanServerConnection()` method on the returned `JMXConnector`.