Hey,
>If I set them up to register with the JBoss MBeanServer, the
>ServiceControlMBean receives notification of their registration and, in
>spite of the fact that they do not implement org.jboss.util.Service,
>calls init() on them unsuccessfully.
Exact point from our discussion before.
>It appears to me that:
>JBoss does not expect MBeans both not to implement Service not to be
>statically loaded from a file.
I think only the first one.
>It seems to me that since I need to do exactly this with JettyJMX, that
>we need to resolve this (apologies if there is already a way to do it
>and I have missed it).
>Suggestions ?
One quick fix and not so dirty is to change
ServiceControl.handleNotification()
to also check that MBean that was registered is of
org.jboss.util.Service type.
something like:
if (registration_notification && registeredMBean instanceof
org.jboss.utill.Service){
list.add(registeredMBean);
}
Any other cleaner solution?
Vladimir
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development