Oh-oh,
Classloaders. So I happely planned my night to add those two lines and go
out with friends but then I realized how deep the rabbit hole goes.
I was stunned to realize that:
server.isInstanceOf(mbeanName,"org.jboss.util.Service") always returns
false and here is why.
MBeanServerImpl implementation of this method obviously has to load our
service class to do type check. It uses classloader that loaded
MBeanServerImpl which in our case is AppClassLoader. AppClassLoader in
turn can't "see" any of our jboss classes since they were loaded with
Mlet.
I can't see no way to tell to MBeanServer to use other classloader nor did
JMX engineers hooked wires for CCLs. So as soon ClassNotFoundException is
caught (inside MbeanServer.isInstanceOf) false is returnd :(
Feedback?
vlada
On Wed, 11 Apr 2001, marc fleury wrote:
> Bla enough talk, add the f*cking line already
>
> ||I still don't see anything wrong with type check for
> ||org.jboss.util.Service.
> ||Vladimir
>
> "code with your balls on the keyboard"
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development