[ mx4j-Bugs-1124528 ] *MBean interface required in same package as implementor

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #1124528, was opened at 2005-02-17 07:49
Message generated for change (Comment added) made by simonebordet
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1124528&group_id=47745

Category: JMX implementation
Group: Release 2.1.1
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Andrew Scherpbier (scherpbier)
>Assigned to: Simone Bordet (simonebordet)
Summary: *MBean interface required in same package as implementor

Initial Comment:
I don't know if this is in the spec or not.  I have not
read it.  Sorry.
If the interface FooMBean is in a different package
than Foo, then Foo cannot be registered.

Exception in thread "main"
javax.management.NotCompliantMBeanException: MBean is
not compliant
        at
mx4j.server.MX4JMBeanServer.registerImpl(MX4JMBeanServer.java:795)
        at
mx4j.server.MX4JMBeanServer.registerMBeanImpl(MX4JMBeanServer.java:746)
        at
mx4j.server.MX4JMBeanServer.registerMBean(MX4JMBeanServer.java:730)


I know this is probably not a wise thing to do, but the
error message was vague enough to force me to spend
about an hour to figure this out.

----------------------------------------------------------------------

>Comment By: Simone Bordet (simonebordet)
Date: 2005-02-21 18:31

Message:
Logged In: YES 
user_id=1170988

This behavior is defined by the specification.
Although MX4J can be configured to read also management
interfaces from other packages, I don't recommend it, since
it makes the code non-portable between JMX implementations.

Look also at the javax.management.StandardMBean, for a class
that can accept any interface as management interface.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1124528&group_id=47745


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
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.