I am trying for some time now to be able to edit complex types I manage with JMX, meaning I have a class A which holds int string and an instance of B (another class)
class B holds int and int ... all I want to do is to be able to edit class B. I managed to dig deep inside openMBeans and I know how to manually create them and expose them to the jconsole as tabluardatasupport (if collection) or Compositetype (if only one instance) but my issue now is that I can't edit them. I am using Jconsole and as far as I understand if the OpenMBeanAttributeInfoSupport of the attribute (when constructing the MBeanInfo) is on writable=true the JConsole should let me edit this attribute but it doesn't (for the other int and string it does)
maybe I am missing something, ANY HELP WOULD BE GREATLY APPRECIATED!!!
that looks pretty much correct couple of comments. did a quick search and saw some comments that the limitation may just be jconsole (e.g. http://www.thatsjava.com/java-core-apis/56675/ ). did you try using jvisualvm? it's much nicer than jconsole. (you'll need to install a plugin in order to see mbeans).
also, did you try using MXBeans? they are 100 times easier to use than openmbeans.
p.s. please put code in code tags next time so that it is readable.