Re: NotCompliantMBeanException using mx4j 2.0.1

"Simone Bordet" <[email protected]>
Newsgroups gmane.comp.java.mx4j.user
Message-ID <[email protected]>
Hi Luca,

> I've an NotCompliantMBeanException when I try to register an Mbean to
> MBeanServer:
>
>  aptStatsCFNRd MBean registration
> (javax.management.NotCompliantMBeanException: MBean is not
> compliant).
>
> Since I've problems only with this MBean (while I can correctly register
> others MBean), I think that maybe there is a problem in MBean Name. is it
> correct? Where I can find api documentation for 2.0.1 release?

First, I strongly suggest you to move to 3.x serier of MX4J.
About your problem, it may depend on many factors, but the most common
one is that the MBean you try to register
a) does not implement DynamicMBean, or
b) does not implement an interface whose full qualified name is that
of your class + "MBean" (if your class is called com.acme.Service, the
interface must be com.acme.ServiceMBean).

Please refer to the JMX specification for the definition of MBean.

Simon
-- 
http://bordet.blogspot.com

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.