David Maplesden wrote:
> Ahh, this is a bug I came across about two weeks ago when developing my own
> mbean.
>
> It is actually a bug in the MBeanServerImpl when working with mbeans that
> use the default domain in the object name (i.e. ":service=Jetty" instead of
> "SomeDomain:service=Jetty"). It fails to find the mbean when it tries to
> unregister it, even though the call to isRegistered(mbean) returns true.
>
> Put a domain name in your object name the problem goes away.
Or use MBeanServer.getDefaultDomain() to get the name to use as domain
name. Recommended workaround.
/Rickard
--
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [EMAIL PROTECTED]
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development