[
http://jira.jboss.com/jira/browse/JBAS-3614?page=comments#action_12350567 ]
Dimitris Andreadis commented on JBAS-3614:
------------------------------------------
The jdk implementation of RequiredModelMBean/ requires the attribute to be declared as
operation(s), too:
http://java.sun.com/j2se/1.5.0/docs/api/javax/management/modelmbean/Requi...
... If the 'setMethod' field of the attribute's descriptor contains
the name of a valid operation descriptor, then the method described
by the operation descriptor is executed. In this implementation,
the operation descriptor must be specified correctly and assigned
to the modelMBeanInfo so that the 'setMethod' works correctly.
However, this is not a requirement of the JMX 1.2 spec (see pp88).
I enhanced the test to add the metadata jdk1.5 needs. It passes with all jdks I tested.
failing
org.jboss.test.jbossmx.compliance.modelmbean.ModelMBeanTestCase
-----------------------------------------------------------------------
Key: JBAS-3614
URL:
http://jira.jboss.com/jira/browse/JBAS-3614
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: JMX, Test Suite
Environment: Java Version 1.5.0_05
Java Vendor Sun Microsystems Inc.
Java VM Name Java HotSpot(TM) Server VM
Java VM Version 1.5.0_05-b05
Java VM Info mixed mode
OS Name Linux
OS Version 2.6.9-34.0.2.ELsmp
OS Arch i386
Reporter: Dimitris Andreadis
Assigned To: Dimitris Andreadis
Fix For: JBossAS-4.2.0.CR1
testRMMResourceImplementsMBean Failure
testRMMResourceImplementsMBean: javax.management.MBeanException: Operation
setpojoAttribute not in ModelMBeanInfo
junit.framework.AssertionFailedError: testRMMResourceImplementsMBean:
javax.management.MBeanException: Operation setpojoAttribute not in ModelMBeanInfo
at
org.jboss.test.jbossmx.compliance.modelmbean.ModelMBeanTestCase.testRMMResourceImplementsMBean(ModelMBeanTestCase.java:150)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira