RFR: 8242328: Update mentions of ThreadMBean to ThreadMXBean

Mandy Chung mandy.chung at oracle.com
Fri Jun 12 20:43:43 UTC 2020



On 6/12/20 12:27 AM, David Holmes wrote:
>
> No. There is no MXBeanServer.
>
> This attempts to shed some light on everything:
>
> https://docs.oracle.com/en/java/javase/14/docs/api/java.management/javax/management/MXBean.html 
>
>
> "An MXBean is a kind of MBean. An MXBean object can be registered 
> directly in the MBean Server, or it can be used as an argument to 
> StandardMBean and the resultant MBean registered in the MBean Server."

MXBean was added in Java SE 6 to support the management bean API changes 
and interoperability.

For a remote client to access a MBean, all classes referenced by a MBean 
interface must be observable in the remote client.  If a MBean is 
updated to reference type X, a remote client attempts to access this 
MBean may fail if X is not present.

MXBean is a type of open MBean which means that a remote client accesses 
a MXBean using the predefined set of open types.   For example, if 
ThreadMXBean were modified to access a new type say StackFrame in JDK N, 
a remote client can continue to run on an older JDK while it's able to 
monitor a JVM running on a newer release N using the open types 
(javax.management.openmbean.* types).

Mandy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20200612/4fdff967/attachment.htm>


More information about the serviceability-dev mailing list