You shouldn't be using CompositeData
directly even though the documentation sounds like you should. The MXBean
will take care of converting a proprietary data type into a CompositeData
instance and back automatically.
Take a look at the samples provided in the documentation to see how you should use @ConstructorProperties
annotation to make your data type play nicely with composite data and MXBeans.
-JB-