[jboss-user] [Management, JMX/JBoss] - StandardMBean's implementation of the DynamicMBean interface

rydenius do-not-reply at jboss.com
Mon Nov 13 10:31:46 EST 2006

Hi. Hope someone can share a little light on this:

In JBoss 3.2.8, all implementations of the DynamicMBean interface in the class javax.management.StandardMBean except for getMBeanInfo() throw IllegalStateException("Do not invoke directly"). In JBoss 4.0.5 on the other hand, StandardMBean provides a DynamicMBean implementation as expected, so this is only a 3.x issue.

My application runs on several platforms and I need to put a dyanmic proxy (with DynamicMBean as proxy interface) in front of the MBeans (including StandardMBeans) to ensure that all invokes use the correct context classloader. But this of course fails on 3.2.8 since all DynamicMBean methods will throw IllegalStateExceptions.

Which class actually implements the DynamicMBean methods if StandardMBean does not. And how does JBoss avoid invoking the DynamicMBean methods internally? Special handling for "instanceof StandardMBean", or what?

    Regards, Jörgen Rydenius

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985469#3985469

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985469

More information about the jboss-user mailing list