I have simple MBean X
with 3 methods and four attributes. It implements interface XMBean
(2 methods).
In other class I register it:
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
X x= new X(14, 16, 17, 13);
ObjectName name = new ObjectName("package:type=xxxx");
mbs.registerMBean(x, name);
I can see it in jConsole. I can call two methods that I implements from interface. I think I should see also attributes of my MBean? Why jConsole shows me only operations? How to show attributes?