-
1. Re: Accessing mbean attributes through invoke()
starksm64 Jan 13, 2006 3:27 PM (in response to dimitris)Agreed. An attribute should never be exposed as an operation via metadata. I also think this is a minor issue.
-
2. Re: Accessing mbean attributes through invoke()
fabcipriano Jan 27, 2006 10:54 AM (in response to dimitris)New patch with solution proposed by Dimitris now with tests.
But I have a some questions. "StandardMBeans" always use MBeanInfoConversion.toModelMBeanInfo to mount its ModelMBeanInfo, and the ModelMBeanInfo created always add attribute methods to ModelMBeanOperationInfo array. Is this a same problem that JBossXMBean10? Is there a reason to do that ?
In the javadoc we can see "getOperations() returns the list of all methods in the MBean interface that do not represent attributes".
Thanks. -
3. Re: Accessing mbean attributes through invoke()
dimitris Jan 27, 2006 10:58 AM (in response to dimitris)I guess it's the same problem (another bug). Thanks for the patch!
-
4. Re: Accessing mbean attributes through invoke()
fabcipriano Jan 27, 2006 4:04 PM (in response to dimitris)Ok. So I think that I will add more tests about this issue to be sure, and I hope to post the results soon.