My MBeans are annotated using Spring annotations as follows:
@ManagedAttribute(description = "returns the name")
public String getName() {
return name;
}
Now, whenever I open a JMX Console (be it VisualVM or JConsole), I can see the attributes of my beans in the Attributes tab, but I can also see the getName() method exposed in the Operations tab. Is there a way in which I can only see the attribute in the Attribute tab (i.e. hide it from the Operations tab)?