Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1
-
None
-
Operating System: All
Platform: All
-
26356
Description
The ManagedMbean class creates an MBean Attribute named modelerType and creates
an instance of the BaseModelMBean with this attribute. The BaseModelMBean has
a getModelerType method, but there is no corresponding setModelerType. It is
incorrectly named setModeledType. This causes an InvocationTargetException
when using a Web JMX interface page which calls setAttributes passing in all
attributes for the MBean, since there is no setter for the modelerType
attribute.
Also, it would be nice to have this as an optional attribute which you may not
want to expose via the MBean interface. When trying to manage simple Java Bean
like classes, we really just want to expose the attributes and operations on
the java bean - not the extra modelerType used by the ManagedBean class.