When I run the code for ListenerClient from Chapter 3 in the JMX book by the JBoss group, using tmx4j, I get the below exception. When I run the same example using JBoss JMX, it works.
the exception occurs when calling:
server.unregisterMBean((ObjectName)handback)
javax.management.RuntimeMBeanException: JMXcr0045E Requested an MBean operation conflicting with a concurrent request
at com.tivoli.jmx.DynamicMBeanSupport.invokeMethod(DynamicMBeanSupport.java:248)
at com.tivoli.jmx.DynamicMBeanSupport.invoke(DynamicMBeanSupport.java:166)
at com.tivoli.jmx.GenericMBeanSupport.invoke(GenericMBeanSupport.java:178)
at com.tivoli.jmx.MBeanAccess.invoke(MBeanAccess.java:113)
at com.tivoli.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:290)
at book.jmx.examples.ListenerClient.run(ListenerClient.java:54)
at book.jmx.examples.ListenerClient.main(ListenerClient.java:142)
Exception in thread "main"
I'm unable to comment on IBM's implementation. However, their dev team seems to be responsive so I'm sure they'd appreciate the feedback.